gradle.properties文件已修改成如下参数,编译打包的时候的参数已修改成API LEVEL 26,其他配置没变
Android SDK version that will be used as the compile project
PROP_COMPILE_SDK_VERSION=26
Android SDK version that will be used as the earliest version of android this application can run on
PROP_MIN_SDK_VERSION=26
Android SDK version that will be used as the latest version of android this application has been tested on
PROP_TARGET_SDK_VERSION=26
Android Build Tools version that will be used as the compile project
PROP_BUILD_TOOLS_VERSION=27.0.3
List of CPU Archtexture to build that application with
Available architextures (armeabi-v7a | arm64-v8a | x86)
To build for multiple architexture, use the : between them
Example - PROP_APP_ABI=armeabi-v7a
PROP_APP_ABI=armeabi-v7a

编译最后还是报同样的错误Unable do incremental execution: full task run
:libcocos2dx:mergeReleaseResources (Thread[Task worker for ‘:’,5,main]) completed. Took 0.092 secs.
:libcocos2dx:verifyReleaseResources (Thread[Task worker for ‘:’,5,main]) started.
:libcocos2dx:verifyReleaseResources
Putting task artifact state for task ‘:libcocos2dx:verifyReleaseResources’ into context took 0.0 secs.
Executing task ‘:libcocos2dx:verifyReleaseResources’ (up-to-date check took 0.002 secs) due to:
Input property ‘manifestFiles’ file E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml has changed.
Aapt2QueuedResourceProcessor is using D:\eclipse\android_sdk_new\build-tools\27.0.3\aapt2.exe
Trying to start D:\eclipse\android_sdk_new\build-tools\27.0.3\aapt2.exe
Trying to start D:\eclipse\android_sdk_new\build-tools\27.0.3\aapt2.exe
Trying to start D:\eclipse\android_sdk_new\build-tools\27.0.3\aapt2.exe
Trying to start D:\eclipse\android_sdk_new\build-tools\27.0.3\aapt2.exe
Started 2111878048
Started 1826547785
Started 1550935415
Started 805199466
Slave 805199466 is ready
Slave 1826547785 is ready
Slave 2111878048 is ready
Slave 1550935415 is ready
AAPT2 processed(805199466) AndroidManifest.xml job:QueuedJob{
title=Compiling AndroidManifest.xml,
task={from=E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml, to=E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\res\compiled\release},
future=com.google.common.util.concurrent.SettableFuture@2139b5e5}
AAPT1 err(Facade for 805199466): error: invalid file path ‘E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml’. -> QueuedJob{
title=Compiling AndroidManifest.xml,
task={from=E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml, to=E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\res\compiled\release},
future=com.google.common.util.concurrent.SettableFuture@2139b5e5}
AAPT warning(599767669), Job(QueuedJob{
title=Compiling AndroidManifest.xml,
task={from=E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml, to=E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\res\compiled\release},
future=com.google.common.util.concurrent.SettableFuture@2139b5e5}): error: invalid file path ‘E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml’.
AAPT1 err(Facade for 805199466): Error -> QueuedJob{
title=Compiling AndroidManifest.xml,
task={from=E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml, to=E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\res\compiled\release},
future=com.google.common.util.concurrent.SettableFuture@2139b5e5}
AAPT warning(599767669), Job(QueuedJob{
title=Compiling AndroidManifest.xml,
task={from=E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml, to=E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\res\compiled\release},
future=com.google.common.util.concurrent.SettableFuture@2139b5e5}): Error
AAPT1 err(Facade for 805199466): Done -> QueuedJob{
title=Compiling AndroidManifest.xml,
task={from=E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml, to=E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\res\compiled\release},
future=com.google.common.util.concurrent.SettableFuture@2139b5e5}
error: invalid file path ‘E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml’.
AAPT warning(599767669), Job(QueuedJob{
title=Compiling AndroidManifest.xml,
task={from=E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml, to=E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\res\compiled\release},
future=com.google.common.util.concurrent.SettableFuture@2139b5e5}): Done
Exception while processing job : QueuedJob{
title=Compiling AndroidManifest.xml,
task={from=E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\manifests\aapt\release\AndroidManifest.xml, to=E:\CocosCreator\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\res\compiled\release},
future=com.google.common.util.concurrent.SettableFuture@2139b5e5} : com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Process (2111878048) processed 0 files
Thread(queued-resource-processor_2): Process(2111878048), after shutdown queue_size=3
Process (805199466) processed 1 files
Thread(queued-resource-processor_1): Process(805199466), after shutdown queue_size=2
Process (1550935415) processed 0 files
Thread(queued-resource-processor_4): Process(1550935415), after shutdown queue_size=1
Process (1826547785) processed 0 files
Thread(queued-resource-processor_3): Process(1826547785), after shutdown queue_size=0
Shutdown finished in 185ms
:libcocos2dx:verifyReleaseResources FAILED
:libcocos2dx:verifyReleaseResources (Thread[Task worker for ‘:’,5,main]) completed. Took 2.443 secs.
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= main.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= AppDelegate.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= jsb_module_register.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= SDKManager.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= jsb_anysdk_basic_conversions.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= manualanysdkbindings.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= jsb_anysdk_protocols_auto.cpp
[armeabi-v7a] SharedLibrary : libcocos2djs.so
externalNativeBuildRelease: check expected build outputs
externalNativeBuildRelease: build complete
:EatGame:externalNativeBuildRelease (Thread[Task worker for ‘:’ Thread 3,5,main]) completed. Took 57.702 secs.
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:libcocos2dx:verifyReleaseResources’.
java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
BUILD FAILED in 1m 1s
38 actionable tasks: 8 executed, 30 up-to-date
执行命令出错,返回值:1。