VirtualAPK icon indicating copy to clipboard operation
VirtualAPK copied to clipboard

Gradle构建问题

Open tangwanchao opened this issue 5 years ago • 5 comments

Gradle version: 5.1.1 Gradle plugin version:3.4.2 VirtualAPK plugin version:0.9.8.6 OS: windows 10

Unable to load class 'com.android.build.gradle.internal.TaskFactory'. Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network)

The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart)

Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

tangwanchao avatar Aug 14 '19 11:08 tangwanchao

Host 已相同配置构建还会出现以下警告

WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'. It will be removed at the end of 2019. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getJavaCompile(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. Affected Modules: app

tangwanchao avatar Aug 14 '19 11:08 tangwanchao

解决没?@tangwanchao

gcgongchao avatar Aug 20 '19 03:08 gcgongchao

gradle 3.1.4 gradle-zip:4.4 然后就可以

gcgongchao avatar Aug 20 '19 04:08 gcgongchao

多谢帮助,使用老版本的 gradle 将正常构建 @gcgongchao

tangwanchao avatar Aug 21 '19 02:08 tangwanchao

VirtualAPK does not support gradle 3.5.2 at this moment. Can we expect any further development?

vladaman avatar Nov 12 '19 08:11 vladaman