Unity publishes error records for Android platform

Unity publishes error records for Android platform

(1)Cannot parse project property android.enableR8=‘’ of type ‘class java.lang.String’ as boolean. Expected ‘true’ or ‘false’.

Comment out android.enableR8= MINIFY_WITH_R_EIGHT and pack it
insert image description here

(2)NDK 19,2,5345600 detected, Unity requires NDK r19(64-bit)(190.5232133)

NDK small version problem is wrong

insert image description here
If it is a large version problem, directly download the corresponding version of NDK. If it is a small version, you can solve it by masking it as shown in the figure below. Find the ndk directory, directly modify the small version and the version that needs to be requested may be able to solve the problem.

insert image description here

(3) Installed Build Tools revision 32.0.0 is corrupted. Remove and install again using the SDK Manager.

insert image description here

(1) Copy the d8.bat file in E:\Android\android-sdk-windows\build-tools\32.0.0 and change the name to dx.bat (
![Insert picture description here](https://img-blog.csdnimg.cn/03b3204dcd694d07a2b5bd44fa6f3ea8.png
2) In E:\Android\android-sdk-windows\build -Tools\32.0.0\lib directory, copy the d8.jar file, modify the name to dx.jar should be able to solve
insert image description here

(4)Minimum supported Gradle version is 6.1.1. Current version is 5.0. If using the gradle wrapper, try editing the distributionUrl in

The error message is obvious, the Gradle version is too low, the minimum supported Gradle 6.1.1 version, just download the corresponding version.
Download address: https://gradle.org/releases/
insert image description here

Guess you like

Origin blog.csdn.net/qq_33547099/article/details/128330338