Unable to setup Android Studio 3.0.1 - android

I installed Android Studio 3.0.1 and everything seemed to go as expected. When first starting up, I got to the point of downloading the SDK components, and received the following error.
"Android Support Repository, Android SDK Tools and 7 more SDK components were not installed"
Has anybody every seen this? Any ideas or suggestions are greatly appreciated.
I am using Windows 10 64 bit. I was able to capture some more details of the failure.
"java.nio.file.AccessDeniedException: C:\Users\gcleveland\Documents\Android\SDK2\extras\android\m2‌​repository.backup.i‌​nstaller.installDat‌​a -> C:\Users\gcleveland\Documents\Android\SDK2\extras\android\m2‌​repository.installe‌​r.installData Warning: Failed to move original content of C:\Users\gcleveland\Documents\Android\SDK2\extras\android\m2‌​repository back into place! It should be available at C:\Users\gcleveland\Documents\Android\SDK2\extras\android\m2‌​repository.backup"
There are multiple other instances like this but different directories.
It is almost as if my permissions are not correct. I have full administrative rights and run android studio as an administrator.

I ran into similar issues with the exe file version and resolved them by instead downloading and installing the zip version of Android Studio 3.0.1 for Windows 10 (https://dl.google.com/dl/android/studio/ide-zips/3.0.1.0/android-studio-ide-171.4443003-windows.zip). After unzipping this file, I simply executed its bin/studio64.exe. I also switched my networking connection to NOT need a proxy, which may also have helped to resolve the issue.

Related

Xamarin Blank Screen

I am trying to explore Xamarin, trying to create simple CURD project.
I was able to make some progress by watching youtube video's, but I am not sure what went wrong all of the sudden I am getting blank screen in my emulator when I am trying to deploy the project.
Firstly it showed me error stating
'the targetFrameWorkVersion is greater than my project version. You
need to increase the version for the project'.
I tried it, I increased my project version. This issue got resolved but gave birth new error.
Secondly
'To deploy this application, your deployment target should be running
Windows Universal Runtime version 10.0.16299.0 or higher. You
currently are running version 10.0.14393.2007. Please update your OS,
or change your deployment target to a device with the appropriate
version.'
I looked up for newer version of OS, but it seems my OS is already up to date.
I really appreciate if anyone help me out with tips or clue.
Environment is as follows
Visual Studio: 2017
Operating System: Windows 10
I am attaching ScreenShot of error
:
Try this
Set your android project as StartUp project
In your VS menu go to Build ->Configuration Manager
Uncheck the UWP project from both Build and Deploy, i hope your issue will be sorted.
first
its not your SDK, this is cause by old nugets in your project.
update all your nugets. at least xamarin.forms.dll
second
update your windows OS to latest. then
install appropriate microsft windows mobile sdk version. the link should appear when you right click your project and select install missing features
https://learn.microsoft.com/en-us/windows/uwp/updates-and-versions/choose-a-uwp-version

FileNotFoundException exception in Android Studio core?

I had just installed Android Studio 2.3.3 and created a new project.
Then the error occurred.
Here is the Event Log
2017/7/30
21:50 FileNotFoundException: Entry fileTemplates//code/Google Test
Fixture SetUp Method.cc.ft not found in C:/Program
Files/Android/Android Studio/lib/idea.jar
21:50 Gradle sync started
21:50 InvalidVirtualFileAccessException: Accessing invalid virtual
file: file://C:/Android/SDK/platforms/android-26/data/res;
original:182; found:-
And here are some pics.
FileNotFoundException
InvalidVirtualFileAccessException
I'm new to Android Studio.It'll be great if someone helps.
This looks like the same problem I had. It was a new install of Android Studio. I'm just trying to learn to build an app but couldn't even create a new class.
It turned out that I had installed the 64 bit version on a 32 bit machine. In my defense, there's a big green download button that says its for windows, it says nothing about 64/32 bit until you scroll waaaaay down the page.
I found the answer here
Steps to fix:
1. uninstall android studio (but not the SDK)
2. download the 32 bit version from the same page where I found the 64 bit one.
3. Scroll down the page to find it.
4. unzip the downloaded file and move it into the programs directory.
5. launch android studion by opening the file \Program Files\Android\android-studio\bin\studio.exe
I got a similar error when trying to add C++ functionality, I think the fix will be similar too...
basicly I had to got to SDK Tools, tick the Show Packages, and then untick the Makec plugin
I've solved this issye by adjusting BIOS Setup, when I adjusted the virtualization option.
I'm using Android Studio 2.1.3.

How to resolve : unexpected error occured Initializing Android Designer" in VS 2015 with Xamarin

Bringing up a new PC with Xamarin and VS 2015 Pro I received the following error:
An unexpected error occurred trying to initialize Android Designer.
Please verify the Android SDK path and the Java Development Kit path
on Tools->Options->Xamarin->Android Settings menu. Please see the logs
for more details.
I verified the SDK's are installed correctly. VS didn't generate any kind of Activity Log so I believe the log must lie elsewhere. Anyone know where I can find this log to find out more about what is wrong ?
I had exactly the same problem described (on a new PC, with a new Visual Studio install) and am 99.9% sure the answer is in how updates are applied. Or, more importantly, how they aren't being applied when you think they are.
Go to Tools | Options | Xamarin | Other, and under Xamarin for Visual Studio Updates, Check now for STABLE updates. Make sure you're running at least 4.2.0.680. You will have to close Visual Studio in the background as the updater is running--it'll warn you. Uninstalling and installing the cross-platform development tools from Visual Studio was not applying this update for me. I had to force the issue.
Now, as mentioned earlier, go to Tools, Android SDK Manager. I noticed my "Android SDK Tools" and "Cross Platform Tools" were out of date and updates were available. I accepted and applied the updates to version 24.4.1. BEAR WITH ME, THIS IS WHERE IT GETS TRICKY--it still didn't work.
Go back to Tools, Android SDK Manager. I immediately noticed that even though I'd just applied the latest update for "Android SDK Tools", (24.4.1), a new version (25.2.2) was now available, along with 17 other updates. I accepted them all.
Bingo. Where I once had the annoying error message and an empty design surface and an empty toolbox with the sad "no usable controls" message, I now have the attached screen snapshot--a design surface where I can see a visual representation of my .axml, and a toolbox from which I can drag and drop controls and they actually show up on my Samsung tablet.
Sorry so verbose. I lost hours on this problem and thought others might appreciate another working solution.
I had a similar problem as explained below.
Here a solution that worked for me:
1) delete the one package appearing in the screen shot below.
Nota bene: At this stage VS 2015 greyed out the Android SDK manager buttons, even after a restart.
2) download installer_r24.4.1-windows.exe for windows https://developer.android.com/studio/index.html
3) launch the Android SDK Manager outside of VS and install the proposed 19 packages. This time I could go through the installation.
4) Launch VS 2015 and create Xamarin Android project. Launching Main.axml would launch the designer properly on an android project.
The bug I had
I had the same problem here on a fresh install of Win10 + Full visual studio community 2015 update 3 + .Net Core + Azure SDK and Xamarin. Creating a new project Xamarin Native (iOs + Androird) shows up the same message as mentioned by MikeJ. In addition, running in debug F5 makes the designer have a new popup
Problem seems to appear also here
https://bugzilla.xamarin.com/show_bug.cgi?id=44374
and here
https://forums.xamarin.com/discussion/77669/how-do-i-fix-this-error-the-installed-android-sdk-is-too-old-version-25-1-3-or-newer-is-required
.
Opening the Android Manager does not show up version 25 as an option, instead it shows this
However, we cannot install (greyed out button even by accepting license)
Updating Xamarin did not work neither How to update Xamarin for Android within Visual Studio Community 2015
Some guidance would be great to understand what happened.
I had the same problem (when bringing up a new PC with Xamarin) and after a few days I solved the problem.
I moved sdk directory from "C:\Program Files (x86)\Android\android-sdk" to "C:\android-sdk". Then I opened the sdk manager and made updates. It's all.
I think the problem is with the path, which has space :)
I was able to to fix the issue by opening the Android SDK Manager and updating all the tools to the latest version.
If you are already using Android Studio in your computer then this might solve your problem.
Check whether SDK is already available at some other location. That worked for me. To check SDK path- Open Android Studio-> Click on SDK Manager Icon. Check Android SDK Location. Copy that path.
In Visual Studio-- Open Tools->Options->Xamarin->Android Settings menu and replace the new SDK path. It will automatically ask to download the updates. Install all packages and you are done!
before you go through all that trouble (and I went through many convoluted steps myself for several hours) please try run your VisualStudio as administrator and see what happens!
It solved the above issue (and then some) for me. I used fresh WIN 10 and VS2015 Community install and I must have set some of my permissions to tight.
Also I learned that updating my NuGet package: Xamarin.Forms (v.2.3.3.168)
solved errors related to:
System.MissingMethodException: Method Android.Support.V4.Widget.DrawerLayout.AddDrawerListener not found.
But that is another issue all together.
Adding these two references to Droid.csproj and packages.config fixed the problem for me:
<package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="23.3.0" targetFramework="monoandroid60" />
<package id="Xamarin.Android.Support.Vector.Drawable" version="23.3.0" targetFramework="monoandroid60" />
Another issue to be aware of is that you need to have Java Development Kit 8 referenced in Xamarin, instead of JDK 7. You can set this is Tools > Options > Xamarin > Android.

Android Studio freezes after updating to 2.0

I have just updated my Android Studio from 1.4 to 2.0, on startup it freezes on splash-screen. is it possible to fix it or i have to download it again?
Its very strange. I have also updated to 2.0 in my MAC, Ubuntu and Windows 10. I didn't feel any issues till now in any of these.
Please note that 2.0 is still a preview. You may have to wait till Google releases the stable version.
Which operating system are you using?
For Windows, check the log of
C:\Users\<Username>\.AndroidStudioPreview2.0\system\log\idea.log
and paste here the last relevant entries on the bottom with a recent timestamp, containing an error message or indication of a possible freeze.
Also, check that you don't have any Android Studio, IntelliJ, or java-processes running before you start Android Studio.
This is an answer for my question, after trying many methods now it works fine.
This is how i resolved my problem by:
Updating Android SDK Tools and the latest SDK Platform
Removing the Android Studio cache folder situated in
C:\Users\<username>\.AndroidStudioPreview2.0
Running android studio again
At First Update Your Android SDK Tools (Support Repository )
Actually Android Studio creates a local directory . AndroidStudio to
cache its own data. In most environments, this is acceptable. However,
the size of the directory can easily exceed 300Mb and, if you have a
space constraint on your home drive (or a roaming profile in windows),
this may be better off in some other place.
The location of this directory is placed in an idea.properties file in the bin/ directory of your AS is installed.

Configuring android to work on appcelerator titanium

I am running windows 7, and am trying to configure android to work in titanium...
I have installed both 32 and 64 bit versions of Java... (android didn't seem to work with the 64 bit version)...
When you go to configure android from within titanium I am getting the following error...
Items required:
•Add-Ons Google APIs 7, Google APIs 8
When you then click install or update Android, Android SDK manager opens and selects what I need to install... I click accept and it downloads and installs...
However once that completes, I still have the same error when going back to titanium...
It should not be this hard... Any ideas?
I've had issues with the 64bit version. Have you tried uninstalling the 64bit versions of Java?
Also, have you run Android to update all the libraires?
I know it's an old question but in case anyone googles it like I have, this is what helped me:
make sure to install Google APIs at least for the latest Android SDK that you have installed
make sure to have Android 2.3.x installed. This is critical, Titanium Studio somehow couldn't link to my Android SDK (set outside titanium folder) even though I had half a dozen higher than 2.3 SDKs installed
restart Titanium Studio
Further more, in case this doesn't help, try clean-starting Titanium Studio, like so:
close Titanium Studio
go to your Titanium Studio installation folder (e.g. "C:\Program Files\Titanium Studio")
open TitaniumStudio.ini
copy these two lines at the beginning of the file:
-clean
true
save file and start Titanium Studio.
After succesfull operation you can remove those two lines from .ini file as they are not needed.

Categories

Resources