GradleBuild无法按顺序运行任务或gradle构建更改(Android)

时间:2018-07-25 16:59:52

标签: android gradle android-gradle

我刚刚将我的android build gradle从2.3.3更新到3.1.3,现在我以前执行了三个任务(清除,构建,发布)的GradleBuild任务似乎依次执行了。 发布在内部版本中。

Executing tasks: [cleanBuildPublishDebug]
:someapp-app-android:clean
:someapp-app-android:app:clean
:someapp-app-android:cameraview:clean
:someapp-app-android:openCVLibrary331:clean
:someapp-app-android:app:preBuild UP-TO-DATE
[...]
:someapp-app-android:cameraview:transformNativeLibsWithSyncJniLibsForDebug
:someapp-app-android:cameraview:bundleDebug
:someapp-app-android:cameraview:compileDebugSources
:someapp-app-android:cameraview:assembleDebug
:someapp-app-android:openCVLibrary331:mergeDebugConsumerProguardFiles UP-TO-DATE
:someapp-app-android:openCVLibrary331:transformNativeLibsWithSyncJniLibsForDebug
:someapp-app-android:apkDeployDebug
DEPLOYMENT START
copying x86
cp: /Users/oliver/Developer/someapp-app-android/app/build/outputs/apk/debug/app-x86-debug.apk: No such file or directory
copying armeabi-v7a
cp: /Users/oliver/Developer/someapp-app-android/app/build/outputs/apk/debug/app-armeabi-v7a-debug.apk: No such file or directory
copying arm64-v8a
cp: /Users/oliver/Developer/someapp-app-android/app/build/outputs/apk/debug/app-arm64-v8a-debug.apk: No such file or directory
copying universal
cp: /Users/oliver/Developer/someapp-app-android/app/build/outputs/apk/debug/app-universal-debug.apk: No such file or directory
DEPLOYMENT DONE
:someapp-app-android:openCVLibrary331:generateDebugRFile
:someapp-app-android:app:processDebugResources
:someapp-app-android:openCVLibrary331:generateDebugSources
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:someapp-app-android:openCVLibrary331:compileDebugJavaWithJavac
:someapp-app-android:openCVLibrary331:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
:someapp-app-android:app:compileDebugKotlin
[...]
:someapp-app-android:openCVLibrary331:bundleDebug
:someapp-app-android:openCVLibrary331:compileDebugSources
:someapp-app-android:openCVLibrary331:assembleDebug

BUILD SUCCESSFUL in 1m 6s
1 actionable task: 1 executed
18:36:59: Task execution finished 'cleanBuildPublishDebug'.

此处, cleanBuildPublishDebug assembleDebug 的中间执行 apkDeployDebug

当然,发布(APK的简单副本)会失败,因为它们尚不存在。

知道我在做什么错吗? android组装任务是否发生了一些变化,使所有这些中断?

以下是缩短的日志:

{{1}}

编辑,最新的gradle插件似乎不再出现此问题。

0 个答案:

没有答案