Closed dongorigin closed 6 years ago
在本地测试没有发现问题,下面是在开源的demo上的改动
diff --git a/app/build.gradle b/app/build.gradle
index abf802a..82136df 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -6,10 +6,11 @@ buildscript {
repositories {
mavenLocal()
jcenter()
+ google()
}
dependencies {
- classpath 'com.android.tools.build:gradle:2.2.0'
- classpath "com.meituan.android.walle:plugin:latest.integration"
+ classpath 'com.android.tools.build:gradle:3.0.1'
+ classpath "com.meituan.android.walle:plugin:1.1.5"
}
}
diff --git a/build.gradle b/build.gradle
index 1761502..ef41b45 100644
--- a/build.gradle
+++ b/build.gradle
@@ -3,10 +3,11 @@ buildscript {
repositories {
mavenLocal()
jcenter()
+ google()
}
dependencies {
- classpath 'com.android.tools.build:gradle:2.2.0'
- classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
+ classpath 'com.android.tools.build:gradle:3.0.1'
+ classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
}
}
@@ -15,6 +16,7 @@ allprojects {
repositories {
mavenLocal()
jcenter()
+ google()
}
tasks.withType(Javadoc).all {
diff --git a/gradle.properties b/gradle.properties
index e4092f0..5af9d35 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -17,5 +17,5 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
-VERSION_NAME=1.1.5
+VERSION_NAME=1.1.6-SNAPSHOT
GROUP=com.meituan.android.walle
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index f469fe2..8fc4615 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,3 +1,4 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
+#distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
与Realm plugin有关,依赖Realm 4.3.1后报错,回退到4.2后正常。但是暂时没想到两者可能关联的地方,为什么会导致walle找不到class?有什么排查的方向可供参考吗?
我试试realm4.3.1的版本
代码修复了,等待用新版本吧
是因为Android Gradle Plugin 3.0修改了源码导致的吗?请问在哪里可以看到相关源码?
v1.1.6 版本发布了,可以支持了 Gradle Plugin的源码去Google那里找吧
这个问题依然存在,请问是如何解决的?谢谢
Android Gradle Plugin 3.0.1 Gradle 4.4 Walle 1.1.5