It will cause the test only apk problem of android studio
see this: https://stackoverflow.com/questions/14643564/android-error-install-failed-test-only
Err, never mind, 4.2.0 is good.
Ugh. This is a bug. We should not dictate the version of Build tools for users. We should only list the build tools as a provided dependency or as a minimum only depend on the lowest one we support (which I believe is 1.5).
Realm 4.2.0 depends on 2.1: https://bintray.com/realm/maven/realm-gradle-plugin/4.2.0#files/io%2Frealm%2Frealm-gradle-plugin%2F4.2.0
Realm 4.3.0 depends on 3.1.0-alpha03: https://bintray.com/realm/maven/realm-gradle-plugin/4.3.0#files/io%2Frealm%2Frealm-gradle-plugin%2F4.3.0
I am compiling w/:
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'io.realm:realm-gradle-plugin:4.3.1'
The build fails with "Could not get unknown property 'manifestFile' for task ':lib:generateDebugRFile' of type com.android.build.gradle.internal.res.GenerateLibraryRFileTask'"
If I drop back to classpath 'io.realm:realm-gradle-plugin:4.2.0' the build is successful.
I tried with classpath 'com.android.tools.build:gradle:3.1.0-alpha06' and realm 4.3.1 and get the same build failure error message.
You could try
dependencies {
classpath('io.realm:realm-gradle-plugin:4.3.1') {
exclude group: 'com.android.tools.build', module: 'gradle'
}
}
That seems to have worked and done the trick!
Hi can you please try the 4.3.2-SNAPSHOT this should include a fix
This should be fixed by 4.3.2 released today
@cmelchior I'm pretty sure this is fixed in 4.3.2+
yes, this has been fixed
Hey @Zhuinden could you please point me to the commit that fixes the issue?
Most helpful comment
You could try