Gradle builds forever in AndroidStudio - android

I just installed AndroidStudio in my System
I am trying to create my Very First Project .
I set up JAVA_HOME and Android SDK path that has been used previuosly by eclipse in Android Studio
Android SDK has the below versions for Tools and Platform
Android SDK Tools - 22.6.2
SDK Platform - 19
As soon as started Android studio downloaded the Gradle-1.12 in the below path
C:\Users\DELL.gradle\wrapper\dists\gradle-1.12-all
after that it shows the build screen as below. This screen is shown for ever . It is not moving further. can anyone help me in this. I am sad!

Related

Setup Android Studio SDK with Unity

I have recently downloaded Android Studio with its SDK and set custom path for SDK download and its get completed.
My Android Studio correctly detected downloaded SDK and setup running fine with this.
But when I try to set path in Unity its not able to set, again and again same location related popup get opened.
Please see below image file:
Why path not get set that I don't know!! Upto now I used Android SDK with Eclipse so all things work good with me. But after upgrading to Android Studio I can't able to SDK path.
Please give me some help so I can able to export Android build.
Same problem running with Windows platform too.
You don't have Android SDK Tools in your folder.
Download Android SDK Tools and insert it in your sdk folder.

Can’t open Xamarin Android .axml file: The installed Android SDK is too old. Version 25.1.3 or newer is required. Please update to the latest version

I'm using Visual Studio and am unable to open layout files in the Xamarin Android Designer. I get this error when I try:
Something went wrong
The installed Android SDK is too old. Version 25.1.3 or newer is required. Please update to the latest
version.
I’ve already updated Xamarin, and am still stuck. How can this be fixed?
I recently ran into The installed Android SDK is too old. Version 25.1.3 or newer is required. Please update to the latest version. myself and found that I had to update the Android SDK in two stages to get things working.
As other users have mentioned, only updates for version 24.x.x were showing, while version 25.x.x was nowhere to be found. I installed the available updates for Tools, Platform-Tools, and Build-Tools, then exited and reopened the Android SDK Manager. This worked; version 25.x.x was now available for installation.
tl, dr;
Install 64-bit JDK 1.8
Update Android SDK Tools, Platform-tools, and Build-tools. Close SDK Manager and repeat if the version required in the warning isn’t
shown. You may need to exit Visual Studio if you get "Warning! A
folder failed to be moved"
Make sure the Android settings in Visual Studio are pointing to the
right locations: Tools > Options > Xamarin > Android Settings
Keep the Xamarin installation up to date! Tools > Options > Xamarin > Other > “Check Now”
Unsure if that was a one-off, I decided to do a fresh Xamarin installation with Visual Studio 2015 on Windows 10. Here is how I reproduced the issue and got back to working with layout files. This is long and these steps can probably be streamlined, but I wanted to give a clear picture of what I did.
Here is my step-by-step process:
Download Xamarin for Windows
Update to Xamarin latest Stable: Tools > Options > Xamarin > Other > “Check Now”
Open Android SDK Manager, update Build-tools from v23.0.3 to v24.0.3
Uninstall Build-tools v23.0.3, close SDK Manager
Close & reopen layout file, get "too old" message
Open SDK Manager, update to Build-tools v25, uninstall Build-tools v24.0.3
Close SDK manager & layout file
Reopen open layout file, get same message
Open SDK Manager, update to Platform-tools v25
Close SDK Manager & layout file
Reopen layout file, still too old
Open SDK Manager, update SDK Tools from v25.1.2 to v25.2.2
Here, I got the same warning mentioned in another SO post
Carrying on:
Exit Visual Studio; dismiss warning and process continues fine
The warning came back; dismissing again allows process to complete
Close SDK Manager, open Visual Studio, load Android project, open and layout file. Success! I can view layout files again.
There are a few additional things I’d like to mention to minimize potential snags/confusion:
Android Studio is not required. In addition to the prompt in the “SDK is too old” message, the Android SDK Manager can be opened via Tools > Android > Android SDK Manager or the SDK Manager toolbar icon.
My personal practice is to have only one version of the Build-tools installed to help minimize potential conflict or upstream issues, such as a couple that came up while using “version 24”.
Xamarin.Android 7.0 requires JDK 1.8. If you have not already done so, consider installing 64-bit JDK 1.8. This is the simplest option since it is backwards compatible with all previous API levels, it supports the new Android designer features, and the 64-bit version is required to use custom controls in the Android designer.
After updating, go to Tools > Options > Xamarin > Android Settings to verify that the correct locations are pointed to for the JDK, Android SDK, and Android NDK.
I’d also like to note that Android SDK updates are not specific to Xamarin. If we’re developing for Android, we need these tools for things like emulators, debugging, signing APKs, and accessing the newest platform features, whether using Xamarin or not.
For the curious, more details can be found here:
- Android Studio Command Line Tools doc
- What are the Android SDK build-tools, platform-tools and tools? And which version should be used?
I've solved this problem. First, download Android SDK tool 25.1.3 from Google here and extract it.
Then, remove the existing 'tools' folder under SDK like D:\\android-sdk\tools.
After removing it, put the 'tools' folder you recently extracted under the android-sdk path.
Finally, restart your vs. This is working sucessfully for me. I'm running on Windows 7 32-bit.

Visual Studio 2015 - Android SDK version is too old

I created a blank Android App and I get the following error when I try to view designer for Main.axml.
[Something went wrong]
The installed Android SDK is too old. Version 25.1.3 or newer is
required. Please update the latest version.
But I already have the latest version: Android SDK Tools 25.2.2
Please help me.
Here is the process that worked for me:
Install 64-bit JDK 1.8
Update Android SDK Tools, Platform-tools, and Build-tools. Close SDK
Manager and repeat if the version required in the warning isn’t
shown. You may need to exit Visual Studio if you get "Warning! A
folder failed to be moved"
Make sure the Android settings in Visual Studio are pointing to the
right locations: Tools > Options > Xamarin > Android Settings
This is the full post about what I did to resolve this issue.

Project Build Target not available - android

I have recently updated android sdk tools to v23.0.2 in eclipse,
after that it is not showing any targets in project properties and it is asking to update android adt to v23.x.x. After checking for updates it is still showing adt needs to be updated please help.
Image 1
Image 2

Android Studio SDK version error after update

I just finished installing Android Studio and the JDK. Everything worked fine while I looked around the new interface. No errors or anything. After I checked for updates I went from version 0.5.2 to 0.6. When I restarted I got the error
Error:The SDK Build Tools revision (19.0.3) is too low for project ':app'. Minimum required is 19.1.0
Which SDK is it referring to and shouldn't it update along with Android Studio? Before I updated I did not have this message.
So Android Studio version 0.6 requires the Android SDK build tools to be 19.1 instead of the old 19.0.3.
To install this, follow these steps:
Close all open projects.
On the main Android Studio window, press Configure
Then click SDK Manager
Once inside find the following build tools version:
Then tick the box and install the package.
Once your done with that, close the SDK Manager, restart Android Studio, and you should be good to go!
EDIT:
One more thing you need to do:
Open your project.
Navigate to your build.gradle file located inside your module. For you, I think it's in the app folder.
Open the file.
Now you should see something like this:
Where it says buildToolsVersion in the quotes, replace 19.0.3 with 19.1.0. Now sync gradle files and everything should be solved.

Categories

Resources