didi / VirtualAPK

A powerful and lightweight plugin framework for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gradle构建问题

tangwanchao opened this issue · 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.

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

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

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

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