- Creator 版本:windows cocos creator editor 2.3.2
gradle.properties:(PARTs)
PROP_COMPILE_SDK_VERSION=28
PROP_MIN_SDK_VERSION=24
PROP_TARGET_SDK_VERSION=28
PROP_BUILD_TOOLS_VERSION=28.0.3
PROP_APP_ABI=armeabi-v7a:arm64-v8a
gradle:4.6
gradle plugs:3.2.0
andorid SDK:
NDK: v17.2.4988734
-
目标平台: android app ,
-
重现方式:cocos creator "Build"通过,"Compile"不通过并服错,如下:
-
首个报错:
pping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
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
Parsing E:\Android\android-sdk\system-images\android-28\google_apis_playstore\x86\package.xml
Parsing E:\Android\android-sdk\system-images\android-28\google_apis_playstore\x86_64\package.xml
Parsing E:\Android\android-sdk\tools\package.xml
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
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
SDK initialized in 16958 ms
Using incremental javac compilation for :pigappt debug.
Using incremental javac compilation for :pigappt debugUnitTest.
Using incremental javac compilation for :pigappt release.
Using incremental javac compilation for :pigappt releaseUnitTest.
Using incremental javac compilation for :pigappt debugAndroidTest.
All projects evaluated.
Selected primary task ‘assembleRelease’ from project :
FAILURE: Build failed with an exception.
- What went wrong:
Could not determine the dependencies of task ‘:pigappt:compileReleaseJavaWithJavac’.
Could not resolve all task dependencies for configuration ‘:pigappt:releaseCompileClasspath’.
Could not resolve project :libcocos2dx.
Required by:
project :pigappt
Unable to find a matching configuration of project :libcocos2dx: None of the consumable configurations have attributes.
-
Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
BUILD FAILED in 33s
VCS Checkout Cache (G:\c\build\jsb-link\frameworks\runtime-src\proj.android-studio.gradle\vcs-1) removing files not accessed on or after Thu Dec 02 09:25:05 CST 2021.
VCS Checkout Cache (G:\c\build\jsb-link\frameworks\runtime-src\proj.android-studio.gradle\vcs-1) cleaned up in 0.005 secs.
执行命令出错,返回值:1。
- 编辑器操作系统:win8.1,win10都报一样的错误
- 重现概率: 1000%
高手们,出手相助啊!!