小白第一次打包,2.4.13编译报错,无论用什么版本,都会出现这些错误,是我构建的包有问题吗,求大佬解决方法

你的gradle用哪个版本


Task :prepareKotlinBuildScriptModel UP-TO-DATE
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

你有这个警告嘛,我用6.7.2一直报这个警告

好难,快一个星期了,一直换AS版本,gradle jdk Android API ,头发已经掉了几根了

我这用的2.4.8跑到空白helloworld。个人建议用个空白项目先成功运行打开。首先排除是不是项目因素导致。如果空白项目成功运行打开没问题了。然后再仔细对比查找出错的项目。

好的,你的npk是多少

image

感觉这里有问题。所以建议先跑空白项目试一试

是建一个有个场景的项目就行了嘛

是的。比如引擎的helloworld项目

helloworld项目出现这个错误,意思是我要把minSdkVersion改成28?

我全都改成34就报这个的错误了,说我这个ndk只能支持30吗

你的as版本多少

image 这里改成28

装了吗

我在projec Structure里每个模块 全都sdk 和min sdk都改成34,然后build-tools都改成是30.0.2,就可以了,helloworld项目可以在手机上显示了

这些警告都不用解决,就可以运行 :joy:

嗯,能正常打开显示吗。是的话就将之前项目assets的东西copy到creator的helloworld项目中,重新打包,再试试。如果还有问题就是项目哪里不对。

我也才升级不久. 为了google最新政策.
image

PROP_COMPILE_SDK_VERSION=34

Android SDK version that will be used as the earliest version of android this application can run on

½ÓÈëµÄline sdkʹÓÃµÄ Android O ÌØÐÔ, ÕâÀïÏÞÖÆ ×îµÍ°æ±¾ÊÇ 26!!

PROP_MIN_SDK_VERSION=24

Android SDK version that will be used as the latest version of android this application has been tested on

PROP_TARGET_SDK_VERSION=35

好的,我明天回公司看看