Unity3d build error, postProcessing Player Windows - android

I have this issue, it's weird.
When I click on Build button in order to make the .apk file, Unity3D starts the process to build the project but in the middle of the build it appears a process called "Postprocessing Player" on a Window and then shows me a window in which I suppose I need to choose a directory but I don't know why or which directory; when I press cancel button appears a text says:
"Build failure! Unable to locate Android SDK"

You have to install android-sdk on your computer !
Link: https://developer.android.com/sdk/index.html#Other
And here is a tutorial:
http://www.androidcentral.com/installing-android-sdk-windows-mac-and-linux-tutorial

Unity made it easier to locate the Android SDK now.
Go to Edit->Preferences and External Tools
Click on Download next to Android SDK and JDK, it currently opens to the following websites respectively:
https://developer.android.com/sdk/index.html#Other
http://www.oracle.com/technetwork/java/javase/downloads/index.html

Related

NO Android option in "tool" menu, and no avd manager

Problem : No AVD manager in Android Studio, and no "Android" option in the "tool" menu.
Tried solutions :
re-install (twice)
changed installation partition to the one containing the Android SDK directory
went to "configure" - "project default" - "project structure", and checked my Adroid SDK directory (it's there)
open a new project - there is still no android menu, and no avd manager.
instead of "Android" in the "tool" menu, i have "Kotlin"
i tried to use terminal, and console, to launch android avd : not opening
i tried to search for Android, or AVD, in the search option. they show, but when i click, nothing happens
i saw people saying i needed 5gig storage to install Android Studio. but when i install mine, it only offers one option, and total is 2gig. but i have way more than enough storage space on both my partition for 5gig or 50gig
i tried to customize toolbar, but Android options are just not there to be made visible
i have read all the posts here regarding this issue, and have not found a solution that works.
It must be a simple step that i am missing, but which one ???
-
Which Android Studio are you trying to use?
I am using 3.0 and I see both "Android" and "Kotlin" submenus under "Tools".
I am using macOS 10.12.6
I faced the same issue, but it's resolved now.
Follow the steps mentioned below:
Run the unistaller from Control Panel if you are using windows.
After you have uninstalled Android Studio, it is recommended that you restart the machine before proceeding with the steps below.
To remove and delete the remains of Android studio setting files;
Go to C:\Users[YOUR WINDOWS USERNAME]
Delete .android, .AndroidStudio and any versions of this directory with versions on the end, .gradle and .m2.
Then, go to C:\Users[YOUR WINDOWS USERNAME]\Roaming and delete the JetBrains directory. (If any, else ignore).
Finally, go to C:\Program Files and delete the Android directory.
Delete any remains of the SDK, in Windows Explorer, C:\Users[YOUR WINDOWS USERNAME]\AppData\Local and delete the Android directory.
(Optional) Delete all previous projects AndroidStudioProjects directory.
Instal Android Studio
Wait till after sometime a prompt will appear to standard or custom installation
Select Custom Installation and make sure Android virtual device is selected there and continue install.
Once everything is done.. Create a project with basic actvity and then wait.. It atleast take 5- 10 minutes to load... At the end you will see Gradle build finished in the console.
You may get errors in console. There will be link to fix all these errors at the console only if there are any errors.. click on those links and those will get automatically fixed. Do this till the console errors goes away.
Then view Tools menu hopefully you should find ANDROID menu option there :)

Android Studio AVD Manager button is disabled

I'm very new to Android development and have never used Android Studio before. I set it up, got my app working on my phone and left it alone for a few weeks. Upon returning, I could not find the Android Studio executable on my computer, so I reinstalled it and restarted on the same project.
Not sure if this has to do with the AVD Manager button being grayed out. Things I have tried:
Making sure my SDK path is correct
Running Android Studio as administrator
Launching the AVD Manager executable from windows. I can create a virtual device but doesn't affect disabled AVD Manager button when restarting Android Studio.
Installing Intel X86 Atom System Image and Google APIs in SDK Manager, under API 24.Everything under API 25 is installed.
Any help is appreciated. Thank you!
This generally happens when Android Studio is not able identify the android sdk installation in the machine. This could happen if Android Studio is launched in non-Administrator mode.
Just close and relaunch Android Studio in administrator mode. You will see a saying "android framework is identified" Click on the configure link on that notification. The AndroidStudio will start configuring the android sdk. After some time the buttons would be visible and enabled.
If you tried running the Android Studio in administrator mode and it still do not work for you try the following way.
Delete the .idea folder in the project
Re open the project from going to File->Open Recent->
Then you will be asked to convert the project
Click convert
For anyone seeing this problem following the React Native tutorial make sure to click the "Configure" button in the Event Log next to the log text that reads "Frameworks detected: Android framework is detected in the project"
This action seems to be what configures the project to be an Android project.
I'v solved this issue by updating gradle.
It is simple
The only thing that worked for me was that I clicked in Androidstudio in the top right on SDK Managar.
And there under android sdk it was so that there was no path entered. and it was also so that NO Check box was checked below.
So I had to first click in the top right on Edit thereby was written to me the path pure.
After that I had to select a chack box below it no matter whiche and sometimes it must then just install something. When it has finished installing click OK. It may be that you then have to close and open android studio again.
I was having this issue on a new machine running MacOS High Sierra.
After installing Android Studio and the most recent SDK/
SDK Tools, I was unable to create any AVD from Android Studio (button greyed out, no option under Tools) or run the AVD Manager any other way.
I tried the same things the OP had done, then noticed I was getting the following error: Gradle sync failed: Failed to find Build Tools revision 26.0.2
From the Event Log I followed a link to download the Build tools and now it works!
If you are working on Flutter, Follow the steps:
Open Settings in Android Studio (CTRLALTS)
Search Flutter
Check may path of Flutter SDK is not available.
Set the path and press OK.
Done! Thank you
I tried the answers here, but the only solution for me was to restart my machine and it fixed itself. It happened after upgrading AS (from 4.0.2 to 4.2.2)
in android studio or intellij program:
goto tools > android > SDK manager
click on Edit (android SDK location)
click next and next
close dialog
its ok.

How to manually install Android SDK in Android Studio

I have installed Android Studio. When I run it then it automatically tries to download Android SDK and due to firewall problem it is unable to download.
Is there any way to manually download and install this SDK so Android Studio doesn't have to download it automatically?
I am unable to go past this step because if I click cancel then Android Studio closes. Screenshot given below.
EDIT
Folder structure screenshot below.
EDIT
SDK screenshot below.
When you see the above screen(in the screenshot you gave) then press cancel and it will show you "nothing was installed blah blah..." then don't click finish instead click the Close(x) box then you will see the Android Studio Menu from there go to "Configure" from there you can find some option related to SDK path
Just skip this and create a project, then click on project structure from file menu and change sdk path
You can use your old Sdk or download manually a new one and specify its path

Android-studio Selected directory is not valid home for Android SDK

I installed android studio but while selecting android SDK I am getting following error. I tried solution which is on this post but no luck. How can I solve this?
I had this problem, select SDK folder (NOT SDK->sources or SDK-platforms)
I resolved with the instructions here,
http://www.blog.teamguru.in/2018/04/06/selected-directory-is-not-a-valid-home-for-sdk/
Just close current error window and let run the android studio
Open the SDK manager as shown below
Click on Edit SDK location as shown below
Simply press next button if there is correct location for SDK you want to install there
Let it be downloaded
Install platform and SDK tools and
Enjoy
Try restarting the application. Close all related studio processes, then right click "run as administrator".
You should be fine after this.
I got the same issue. You must enable the Android Support Plugin
Configuration > Plugin > Android Support Plugin. Check it.
Close error window
Go to gradle tab
select "Gradle settings", wrench icon
Search for SDK setup
Select appropriate sdk for your device.
Next, two times
Wait for install
There is all..
None of the other answers work. After the installation, immediately close Android Studio, then start it as administrator. A message might popup asking for the sdk manager location. Ignore it (Close the popup). Go to Tools > SDK Manager and click on the edit button on the right of Android SDK Location. Then click Next, next and you're good to go. Android Studio will let you install the sdk manager.
I had the same problem but what I found is that it requires the parent folder of the following things AVD manager,SDK manager,tools,platform-tools,build-tools etc.So what you need is to find the parent directory of these things, which you might find with a name such as android-sdk or android-sdk-windows(in case you are using windows OS).Make sure the above said contents are in that folder and select it.I hope you will find this useful.
Download the SDK from http://developer.android.com/sdk/index.html
Start SDK manager and make everything up to date
Also, make sure you have set the language level to
7.0 Diamonds, ARM, Multi-catch, etc
I had this problem on Linux. Apparently you need write access to some place in that directory, so I just took ownership of the entire thing:
sudo chown -R thomas:thomas /opt/android-sdk
Could be that something similar is going on on Windows as well.
If like me, a MacOs user which has installed Android Studio on my Mac and if you've tried everything you can think of but was still unable to set the Android SDK directory in Android Studio, follow the next steps (I know the site where I got the bundle is a freeware site but the package is the right one):
1. Download adt-bundle-mac (Android Developer Tools) from [here][1].
2. Unzip the file and browse into the unzipped folder.
3. Copy only the sdk dir to /Users/username/Library/Android
4. Open Android Studio, the error about the SDK folder which is not set will pop up, set the path to the SDK to "/Users/username/Library/Android/sdk".
5. Now Android Studio will accept the path and you're good to go.
I wasted about 2 hours until I fixed it so I hope that by writing this answer I'll save you some 2 hours.
The sdk folder contains the platform-tools folder.
I copied this folder and named it platforms, then it worked for me.
Just delete(preferably permanently) all the android directories in whatever location they are present(e.g. C:\Program Files\Android, C:\users\respective user\respective android folders). Remove the installer as well(if possible). Make sure to save all your Android Studio files in some external storage (preferably).
The main thing is to get Android studio with SDK.
Now go to the android studio website and install android studio leaving all settings default. There you will also get to install the SDK and it's linking.
It will take some time to load and will load nearly 1.5 GB files.
This worked for my case.
In my case I wasn't giving him admin permission
Steps to follow:
Close Android Studio.
Restart Android Studio and Give the path of Empty Folder .
Install Sdk in that folder(Sdk will automatically install and will get configure automatically.)
With Android Studio 4.1.2 the easiest thing is to close the project (file / close project). That's how you get to the wizard that automatically sets up the SDK for you.
The default location that it suggests is /Users/stan/Library/Android/sdk (exactly the same that I was trying to set up manually but AS kept saying it's invalid)

Eclipse cannot find Android Support Library

I am an experienced programmer but new to Android, hence using Eclipse for the first time.
Unfortunately I cannot get my first project off the ground. I get as far trying to create the project when the following sequence happens.
A screen arrives titled 'Install Dependencies' telling me that the required version is 8 and the installed version is 'Not installed'
I click on the Install/Upgrade button and something must happen because Android SDK Manager pops up and I get a whole series of 'Fetching:' messages.
The next screen asks me to Choose Package to Install and the only option is Android Support Library, revision 10. This doesn't bother me as I presume 10 is better than 8 so I hit the Install button.
This is where it all goes wrong as I get a red message saying:-
File not found:C:\Program Files (X86)\Android\android-sdk\temp\support_r10.zip (Acces is denied).
Sure enough, when I check this folder, it is empty.
Now, something must have happened as as SDK Manager did a whole lot of fetching and must have put these files somewhere.
I am quite happy to find them and put them in the correct folder but the question is
What is the name of the files that I am looking for?
Run SDK Manager as administrator and then install Android Support Library from Extras
Download the sdk manager seperately and install files from there. put it in a place which is accessible to you and then point your eclipse android directory to it. tools>options>android sdk
Run eclipse as Administrator. This is the solution.
Try running your application (Eclipse) in Admin Mode.
Right click on the Eclipse app, and choose "Run as Administrator"
This will fix your problem.
properties >java build path >click library tab > add jars > add jars from the support library.

Categories

Resources