Installing Unity 4.6.1 error: No SDK found - android

Since installing Unity 4.6.1 I have been having an SDK version problem.
When I download the SDK all I get is the "tools, platforms, add-ons folders and AVD Manager.exe and SDK Manager.exe.
When I point Unity to this folder it still says no SDK found.
I tried copying these files and replacing the same ones in my SDK that did work.
How do I set the SDK file up?

Window-->Preferences-->Android-->
SDK Location: C:\CI\android-sdk-windows\tools-->then SDK Location: C:\CI\android-sdk-windows-->Apply-->
List show:
Target Name Vendor Platform API Level
Android 5.0.1 Andriod Open Source Project 5.0.1 21
Google APIs Google Inc. 5.0.1 21
-->OK

Point it to the root folder of Android SDK which you got after unzipping the bundle.
Also, see this: http://docs.unity3d.com/Manual/TroubleShootingAndroid.html
EDIT:
After seeing the edits to my post, I think it makes sense to put this info out here for better visibility.
Anyone with OP's problems, read this:
There's a zip available if you don't want the Android Studio bundle. Here: developer.android.com/sdk/index.html#Other
But you don't need to download the whole thing again and again. Just fire up the sdk manager, tick mark the packages you need to update (just select the core packages, exclude docs and samples and sources and emulator system images), accept their licenses, and just install.
Also, it is not necessary to update the Android SDK everytime Unity asks you to do so. Just hit in continue as many times as is required. Your build will continue.

Related

Android sdk for Intellij IDEA

I'm trying to setup IntelliJ IDEA to develop android applications and I faced an issue with android sdk. As far as I know, I need to download the sdk separately. But I all I managed to find was Android command line tools which is obviously not something I need. So my question how can I get android sdk for IntelliJ IDEA?
You can install whichever android SDK or API from Intellij. I have the 2018.1 version but I hope this works in earlier versions too. You can find the options to install the SDKs here:
Same problem I have with IDEA 2017.1.1. I installed tools_r25.2.3-windows.zip and managed to install them.
I've done:
unzipped it to C:\Android\android_sdk\
renamed "tools" folder to "tools-sdk"
executed
C:\Android\android_sdk\tools_inst\bin>sdkmanager --update
prepared file my_file with lines:
build-tools;24.0.0
platforms;android-24
tools
emulator
Executed:
C:\Android\android_sdk\tools_inst\bin>sdkmanager --package_file=my_file
Then gave IntelliJ IDEA folder C:\Android\android_sdk as Android SDK Home Folder.
Then IDEA asks to install something additional. The test android project compiles and runs on emulation (AVD Manager works). I had to install 22 Platform and Build Tools though because android-24 virtual device asked for a password.
The only problem is I still have no SDK Manager with GUI interface.
First of all make sure you'be setup JDK properly. If not, you can download it from here.
Now go to Android Developer official site and download Android Studio.
If you are already done with above mentioned points the few point you might be missing.
When asked to choose the JDK (not SDK) you need to choose the Java JDK which you've installed earlier. Should be under C:\Program Files\Java\jdk{version}
Choose a New platform ( if there's not one selected ) , the SDK platform is the android platform at C:\Program Files\Android\android-sdk-windows.
Please let me know if it didn't help.
Reference:
https://www.jetbrains.com/help/idea/2017.1/getting-started-with-android-development.html
I had the same issue. I tried downloading sdk via android eclipse setup process. Eclipse automatically downloads the sdk. This sdk has a gui sdkmanager and can be used in idea as well. Here is the link to download eclipse.
(Android Studio installed on my computer.)
As i see users missed a point while installing android SDK.
You should show the Android SDK at AppData folder to IntellijIdea.
C:\Users\Your_Username\AppData\Local\Android\SDK_Folder.
References: https://www.jetbrains.com/help/idea/prerequisites-for-android-development.html
https://www.jetbrains.com/help/img/idea/2017.2/AndroidSDKManager.png
You can download the android SDK from this link here. I hope it should be helpful that link.

Visual Studio 2015 Xamarin aapt.exe error package resources do not exist

I get a aapt.exe exited with code 1073741819 error when I try to build a new blank android app in VS2015 Community Edition.
Also a file obj\android\bin\packaged_resources does not exist error.
I have changed nothing and this happens.
I've tried looking this up and have found about:
Changing the output verbosity to Diagnostic [Doing this has not yielded anything useful that I can understand]
Ensuring all concerned files and directories contain no spaces or any special characters/symbols.
Installing all the latest Android SDKs.
The solutions I've been able to find (which usually include checking names of files and directories along with re-installing Visual Studio all together) do not resolve the issue. I have also tried Repairing VS to no avail as well as re-running the Xamarin for VS installer which also had no effect.
I would rather leave re-installing VS entirely as a last resort since it is a large download (+20GB).
-EDIT-
Most threads I've looked up talk about resolving erroneous syntax, missing parameters, calls to variables that were not declared, incorrect id tags, spaces or dashes in filenames etc. All usually in xml or layout files.
That is not the case for me. I get these errors as soon as I create a new project. I've checked the default code and it does not seem to have any errors in and of itself.
What is also a common remedy is to set output verbosity to 'normal' or 'diagnostic'as doing that would usually point out the culprit (often a syntax error). This has not worked for me either
Also I am up-to-date with SDK packages.
Remove SDK 24 using the Android SDK Manager. Technote on this exact issue here - https://releases.xamarin.com/technical-bulletin-android-sdk-build-tools-24/ . Totally removing "24" from my machine cleared it. Just changing targets did not.
From android SDK manager just make sure that at least one Android SDK Build Tools for your used API is installed
for example for version 22.0.1 , check the below image
I know this question is ancient, but I stumbled on it earlier today with a nearly identical problem. The answers and comments got me nearly all the way to a solution, and since this never seemed to wrap up neatly I thought someone might benefit from my flailing.
I'm pretty new to Xamarin and most other things programming and this is my first Stack answer, so my apologies in advance if I'm off base or out of bounds with anything.
Since it appeared at least some of the problem is conflicting APIs, I set the properties of the application to Android 6.0 (API 23) for compiling and targeting to simplify troubleshooting. See this screencap. This eliminated one instance of code 1073741819 right off the bat.
I then deleted everything that wasn't related to API 23 or Android 6.0 via the SDK manager. Including, rookie mistake, Android SDK Tools in the tools folder. The solution compiled error free (yay!) but my Android tools were gone...something I didn't notice until I tried to get a list of packages from the SDK Manager (that was no longer functional).
I ended up downloading a new set of command line tools from Android and placing the extracted "Tools" folder back into ProgramFiles(x86)\Android\android-sdk. This fixed my mistake with SDK Tools, and added additional packages to my "API 23 only" lineup--but the solution still builds error free.
I currently have the below packages installed per the Android SDK manager and solution builds as expected, so one can use the SDK Manager to modify the packages instead of doing full removal and reinstall of the tools folder (like I bumbled into).
Tools
Android SDK Tools : Rev 25.2.3
Android SDK Build-tools : Rev
23.0.3
Android SDK Build-tools : Rev 23.0.2
Android SDK Build-tools : Rev 23.0.1
Android SDK Build-tools : Rev 22.0.1
Android SDK Build-tools : Rev 21.1.21
Android 7.1.1 (API 25)
Sources for Android SDK : API 25 Rev 1
Android 6.0 (API 23)
SDK Platform : API 23 Rev 3
Google APIs : API 23 Rev 1
Google APIs ARM EABI v7a System Image : API 23 Rev 7
Google APIs Intel x86 Atom System Image : API 23 Rev 12
Sources for Android SDK : API 23 Rev 1
tl/dr:
The wrong combo of Android APIs installed seem to break the aapt.exe process, as does targeting/compiling in a version you don't have packages for or have conflicting packages for.
Setting application properties to a single desired Android version, and
replacing the ProgramFiles(x86)\android-sdk\tools folder with the latest download of command line tools from Android allowed it to build error free.

Visual Studio Tools for Cordova - FAILS

Everytime I build I get the below error. I'm new to cordova in Visual Studio. I actually tried installing for VS2013 first. I downloaded VS 2015 RC community and I'm trying to get the project started. However I'm getting the below message.
Attempt 1: I tried going into options>VS tools for Cordova> and clearing the cache.
Attempt 2: I've verified that have the correct path to Android SDK.
Attempt 3: I've download Android Studio thinking that it make magically load secret files for Android that I don't have.
All three failed! Help!
EDIT: I downloaded the Android Stand-alone SDK Tools and payed close attention to the path they were installing in. I notice that these were installing in the AppData folder on my machine and not the C:\Program Files x86....android sdk folder. I referenced this new folder and it seems to be working.
Note that these are warnings, not specific build errors. These messages are telling you that you have not installed some specific Android SDK components (not necessarily the Android SDK manager or tools as a whole which is what the link on the Android site gives you). In particular, you need updated build tools and the Android API level 21 SDK. If you have a more recent version of the build tools you are probably fine but missing the specific Android SDK mentioned can cause builds to fail. Each version of Cordova has different SDK version requirements. (4.3.0 uses 21 while 5.0.0 uses 22.)
To install, open the Android SDK manager (which should be in your start menu if you allowed VS to install the SDK for you or see here for its location if you did not).
Then, be sure the following are then checked and click install:
First the build tools version:
Then at least the "SDK Platform" for API level 21. You can also check the entire category if you want access to emulator images. Also note that, despite the name that appears in the SDK manager, a given SDK allows you to target a wide variety of devices. The version like "5.0.1" simply tells you that the SDK enables you to optionally use APIs available up to that version of Android in your native code.

Android Eclipse Support Library: Required version blank

I have just downloaded and installed the latest ADT Bundle for Windows available from the Android Developer website. Following this, I installed all the packages in the SDK Manager, including the 'Android Support Library Rev. 18'. Finally, I installed the latest ADT through the 'Help > Install New Software...' menu in Eclipse.
I have strictly followed the following guide to create my first project:
http://developer.android.com/training/basics/firstapp/creating-project.html
But by the last step, I arrive at an error, showing the Support Library revision I have installed, and a required version of -blank-:
http://i.stack.imgur.com/CScNj.png (sorry, I can't post images yet)
I have checked through 'Window > Preference' that Eclipse is pointing to the right SDK directory. Mine contains the directories: add-ons, build-tools, docs, extras, platforms, platform-tools, samples, sources, system-images, temp, tools - I assume this is correct.
I have read elsewhere about moving files from \extras\android\compatibility to \extras\android\support, however I do not have the 'compatibility' directory. Additionally, my support folder contains the folders: samples, v4, v7, v13 - if that means anything (I assume the problem lies somewhere in here). I have installed the packages in the Android SDK Manager with admin privileges, and have tried creating an android project in Eclipse with admin privileges too.
Not sure where to go from here. Has anyone else experienced this error and can point me in the right direction?
Actually this appears to be an actual bug in the SDK tools: https://code.google.com/p/android/issues/detail?id=60149
see #55 for a workaround without having to downgrade the SDK tools.
You may temporarily downgrade to previous version: just download http://dl-ssl.google.com/android/repository/tools_r22-windows.zip and extract it to your "..Android\android-sdk\tools" folder.
It solved the problem in my case.
UPDATE:
As #DogGuts suggested, a better way is to download correct templates from here and replace files in "\Android\android-sdk\tools\templates\activities"
And the best solution is update SDK to 22.2.1 version :)

How to downgrade my SDK Version?

I made a stupid mistake by upgrading my SDK version to r15 as the android repository was not loading. How do I revert back to my older version r10?
Or is sticking with the newer version better? I'll have to upgrade my ADT Plugin as well then.
Thanks a lot.
Anyway, for those who want to downgrade Android SDK Tools to a previous version, it can be possible following these steps:
Find your Android SDK folder
Locate the "tools" subfolder and rename it to "tools1" (just to keep a backup copy of the original tools folder)
Likewise, rename platform-tools to platform-tools1
Download from google repository the SDK Tool version you want to downgrade to (for instance: http://dl-ssl.google.com/android/repository/tools_r22.6.2-macosx.zip) and unpack it.
The ZIP file you downloaded contains a tools folder that has to be moved to your Android SDK folder.
Likewise, download the platform tools (for instance: http://dl-ssl.google.com/android/repository/platform-tools_r19.0.1-macosx.zip), and extract it in your SDK folder.
That's it.
I want to follow up on the great answer provided by Ariel Iriarte, step 3 (Download from google repository the SDK Tool version you want to downgrade to).
To find the old tools, you need to determine the SDK version number that you want to revert to. On the Google Android SDK webpage, you will find a Revisions list that shows all the SDK numbers, e.g.
SDK Tools, Revision 22.6.2 (March 2014)
SDK Tools, Revision 22.3 (October 2013)
etc.
Make a note of the exact revision number, like "22.3".
Now download the tools by using the following pattern:
http://dl-ssl.google.com/android/repository/tools_rXXX-windows.zip
http://dl-ssl.google.com/android/repository/tools_rXXX-linux.zip
http://dl-ssl.google.com/android/repository/tools_rXXX-macosx.zip
where you must replace XXX with the exact revision number noted above. For example, to download revision 22.0.5 for Mac OS X, download the file:
http://dl-ssl.google.com/android/repository/tools_r22.0.5-macosx.zip
Once you download the file and unzip it, you will find a single folder called 'tools'. Now follow the answer by Ariel Iriarte and replace your android-sdk/tools folder with this new one. This is the folder that contains stuff like:
NOTICE.txt
adb_has_moved.txt
android
ant
apps
ddms
dmtracedump
etc.
Some of you probably found this thread due to the unstable versions of Android-Tools pushed (exclusively) since the stable 22.3 version. This causes a 'hang' in the emulator on the "Android Animation / Splash Screen" in Intel API's pre Version 19, and a "floating point exception" for Intel API-19. The ARM versions still work, though more slowly on Intel machines using acceleration.
To answer the questions of "how to find the older versions not listed in the GUI" - or present in the current xml which feeds it (https://dl-ssl.google.com/android/repository/repository-8.xml), in the comments above, I have no idea how they can be located (please enlighten me).
Fortunately, someone reporting the bug did post a direct link to the Linux and Windows versions of the stable 22.3 version in this thread:
https://code.google.com/p/android/issues/detail?id=66786
... which are:
http://dl.google.com/android/android-sdk_r22.3-linux.tgz
http://dl.google.com/android/android-sdk_r22.3-windows.zip
These also exist in unofficial locations on the web, should those get pulled down, along with the now-gone references to them.
After extracting that archive, you will have the "Tools" folder you need to replace the broken one, as per Ariel Iriarte's instructions above (though I renamed the existing 'Tools' folder something involving the letter 'f' - days into this problem).
In order to prevent this problem from re-occuring, do NOT count on the built-in method in Eclipse / Android-SDK to revert to a previous installation, nor for the older-versions of any file provided by Google to be available At All, Ever, in the future. Backup your entire 'android-sdks' tree prior to installing anything.
You can install multiple SDKs, and set the default SDK by editing the properties on the Android project.
The simple solution is :
1- Go to your graddle-wrapper.properties then change this line as you desire :
distributionUrl=https://services.gradle.org/distributions/gradle-4.4-all.zip
2- Go to File>Project Structure>Project then Change both Gradle version and Gradle Plugin Version
3- then Sync your Project
Done.

Categories

Resources