just built a complete game framework, debugging process, packaging real machine test, but found unable to package, the error report is as follows:
this problem refer to https://blog.csdn.net/THmen/article/details/79424469.
according to THmen, “Unity will call the Android command in the Android SDK tools when it is compiled, but in the new version of the Android SDK tools (mine is 26.1.1), the Android command has been deactivated, so Unity cannot compile normally”. ok, follow the steps to solve, repackage, found another problem, as follows:
C:/Program Files/Java/JDK – 10.0.1 \ bin \ Java exe – Xmx2048M – Dcom. Android. Sdkmanager. Toolsdir = “C:/Users/user/AppData/Local/android Sdk \ tools” – Dfile. = encoding UTF8 – jar “C: \ Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar” –
checks to confirm that all configurations are correct.
so what’s the problem?My Unity version is 5.6.6, which is basically the latest version of 5.x.
since I downloaded the SDK and JDK with Android Studio 3.1.2, is it still a version issue?My JDK is 10.0.1, so I go back to JDK 8 .
try again, the problem has been solved, packaging success, this record!
- After unity connects with androidstudio, unity packages APK with an error: commandinvocationfailure: failed to re package resources
- Solution: unity package failed. Commandinvocationfailure: gradle build failed
- When using ionic to build Android APK, Cordova error is reported: requirements check failed for JDK 1.8 or greater
- [Unity] Solve the problem of IOException: Failed to Copy… in Unity packaging apk
- Solve the problem of installing APK after Android studio compilation: error while installing apk
- Record once the solution of gradle dependency problem: failed to determine a suitable driver class
- Failed to connect to 127.0.0.1 port 43571: problem solving record
- Failed to load resource: net::ERR_ INSECURE_ Response problem solving record
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- NPM run build failed to package err! Missing script: build
- VirtualBox for macOS NS_ ERROR_ Failure (0x80004005) problem solving record
- JOM error 2 problem when qtcreator uses cmake to build a project
- Installation failed with message Failed to finalize session : INSTALL_FAILED_INVALID_APK
- The error record when docker starts Nacos, and the solution to the problem of port occupation
- failed to find Build Tools revision 23.0.2 Install Build Tools 23.0.2 and sync project
- Spring boot problem solving record (1)
- Unity package APK exception failed to re package resources
- [unity] when using unity hub, there is a problem of “failed to delete old unit installation file…” problem
- Ora-02292: integrity constraint (XX) violated – child record found foreign key Association, record cannot be deleted
- Solve the error when installing apk after compiling Android Studio: Error while Installing APK