Upgrade classpath "io.realm:realm-gradle-plugin:4.2.0" to classpath "io.realm:realm-gradle-plugin:4.3.1"
successful build
$ ./gradlew app:dependencies
FAILURE: Build failed with an exception.
In AndroidStudio 3.0.1 When I try to do Gradle Sync I get this error:
"Error:Unable to find method 'com.android.build.gradle.tasks.ProcessAndroidResources.getOriginalApplicationId()Ljava/lang/String;'.
Possible causes for this unexpected error include:
Android Studio 3.0.1
Gradle 4.1
classpath 'com.android.tools.build:gradle:3.0.1'
classpath "io.realm:realm-gradle-plugin:4.3.1"
Describe your current debugging efforts.
> Your code here. Bigger samples should ideally be as separate Android Studio project,
> in gists/repositories or privately at [email protected])
Realm version(s): 4.3.1
Realm sync feature enabled: no
Android Studio version: 3.0.1
Which Android version and device:
buildToolsVersion = "27.0.3"
compileSdkVersion = 26
minSdkVersion = 16
targetSdkVersion = 25
Device: Irrelevant, but: (Google) Pixel, Android 8.0.0
This looks more like a build system failure than a Realm problem. Unfortunately fixing Gradle bugs can be rather annoying.
I would try:
./gradlew --stop
// Delete all cache files in your project. With git: `git -xfd clean`
// Delete global cache dir. On Mac it is located in `~/.gradle/caches
I assume you resolved the issue, if not, feel free to reopen. Closing
I had an issue with a similar error message, but it turned out that I needed to upgrade my gradle-clover-plugin.
Awesome man . You saved my day.
Actually What I used was : gradlew.clean
Thankyou so much
Most helpful comment
This looks more like a build system failure than a Realm problem. Unfortunately fixing Gradle bugs can be rather annoying.
I would try: