Error on Trying to build for android

Hi im working on an app for Android and work perfect in the Editor but when i try to build it it says it cant find the target platforms, i got both the java and the Android sdk and the links are correct.

1 Like

I am having the same issue. Any help would be amazing, below is my current build

Build info:
Unity

  • 2017.40f1
    Android Studio 3.1
  • SDK is enabled and loaded
    -Unity3d is linked to the SDK
    Java SE Dev kit 8u16
  • I downgraded from 10
    -Unity3d is linked to the SDK

Update:
Below are the 4 errors that I am getting when building for android. Thanks, in advance!

After a lot of frustration, I have solved the above issues +… Below is how I did it. Hope it helps anyone who comes across this post. Good Luck!

For windows 10 and I have added thumbnails below for a visual aide.

JAVA_HOME Error:

Go too ‘Environment Variables’

  • add the Variable ‘JAVA_HOME’

  • for the Value add the path too the Java JDK you are using (1.8.0_161 for me)

  • Under ‘Path’ use a semicolon ‘;’ and add the Java JDK path you used above to the end of the
    existing Value. It should look something like this: %USERPROFILE%\AppData\Local\Microsoft\WindowsApps;D:\Program Files\Java\jdk1.8.0_161_

Package Name Error:

This YouTube video will walk through all you will need and a little bit more.

Gradle Error:

Use this Unity Manual.

Setting up your Android phone:

This YouTube video will walk through all you will need and a little bit more.

Make sure Unity Remote is running when you push your build too your phone and VR building Shangri la awaits!

-Wolflike

1 Like

you save my life!!! XD