简体   繁体   中英

Error while building Unity project for Android

Just tried to build Unity project as a test for Android.

I got this error:

Error building Player: Win32Exception: 
ApplicationName='C:/Users/My User/AppData/Local/Android/android-sdk\platform-tools\adb.exe', 
CommandLine='devices', 
CurrentDirectory='C:/Users/My User/AppData/Local/Android/android-sdk

What have I done wrong?

Note: I'm new to Android development and used a tutorial to install the JDK and Android Studio. Wouldn't be surprised if I messed up somewhere lol.

Not positive about what's wrong.

I recommend the following:

  1. Ensure that Edit > Preferences > External Tools > Android SDK path is correct.
  2. Make sure you have the necessary packages.
  3. Check/Ensure your SDK permissions are correct.
  4. Re-installation of the SDK.

Here is some information i came upon in the Unity Forums as well: http://answers.unity3d.com/questions/861959/build-and-run-to-android-problems.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM