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

Circular referencing during evaluation for project ':app'. [Causes problem with Notifee] #156

Closed
orbulant opened this issue Oct 28, 2021 · 3 comments

Comments

@orbulant
Copy link

orbulant commented Oct 28, 2021

This happens only when i use Notifee with Huawei Messaging Service (@hmscore/react-native-hms-push).

I get this error when i run ./gradlew clean or building my android app.

WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
--W- The variant: prodDebug, Use the json file: C:\myProject\android\app\agconnect-services.json

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\myProject\node_modules\@notifee\react-native\android\build.gradle' line: 21

* What went wrong:
A problem occurred evaluating project ':notifee_react-native'.
> Circular referencing during evaluation for project ':app'.

Some things to note:

  1. If i remove agconnect-services.json (part of the @hmscore/react-native-hms-push), this error does not appear and i am successfully able to run ./gradlew clean.
  2. Commenting line 21 of the build.gradle file (C:\myProject\node_modules@notifee\react-native\android\build.gradle) poses no issue, and i am able to use the build and use the app as intended. However this is not a long term solution... of course... so thats why im here asking.

Any ideas?

Any recommendation on what to change in my build.gradle files (android/app and android/) that will help solve this issue?

@9r4ik
Copy link

9r4ik commented Oct 29, 2021

same issue, any ideas?

@ozcanozgur
Copy link
Collaborator

Hi @ALL,

We have tried the notifee package with our push plugin but we could not reproduce this error in our environment setup. This error is may be related with java version. Newer React Native versions need Java 11 to build android part of React Native.

As another option you can try to upgrade agcp version.

image

If issue persist please feel free to contact us, you can share a quick demo with the error. Thank you for your interest.

@ErtugrulBEKTIK
Copy link

Changing the agconnect version fixed the problem.

buildscript {
    ...
    dependencies {
        ...
        //classpath 'com.huawei.agconnect:agcp:1.4.1.300'
        classpath 'com.huawei.agconnect:agcp:1.8.1.300'
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants