Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Failed to notify project evaluation listener" when upgrading to 4.3.+ #5650

Closed
flocsy opened this issue Jan 2, 2018 · 4 comments
Closed
Labels

Comments

@flocsy
Copy link

flocsy commented Jan 2, 2018

Goal

Upgrade classpath "io.realm:realm-gradle-plugin:4.2.0" to classpath "io.realm:realm-gradle-plugin:4.3.1"

Expected Results

successful build

Actual Results

$ ./gradlew app:dependencies
FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':chegg-sdk'.

Failed to notify project evaluation listener.
com.android.build.gradle.tasks.ProcessAndroidResources.getOriginalApplicationId()Ljava/lang/String;

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:

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

Steps & Code to Reproduce

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.

Code Sample

> Your code here. Bigger samples should ideally be as separate Android Studio project, 
> in gists/repositories or privately at help@realm.io)

Version of Realm and tooling

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

@cmelchior
Copy link
Contributor

cmelchior commented Jan 3, 2018

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

@cmelchior
Copy link
Contributor

I assume you resolved the issue, if not, feel free to reopen. Closing

@rmorrise
Copy link

I had an issue with a similar error message, but it turned out that I needed to upgrade my gradle-clover-plugin.

@satty82
Copy link

satty82 commented Sep 29, 2020

Awesome man . You saved my day.

Actually What I used was : gradlew.clean

Thankyou so much

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants