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

🛑 Build Failed: Could not resolve project :react-native-code-push #2796

Closed
AsurNikulTurka opened this issue Feb 3, 2025 · 2 comments
Closed

Comments

@AsurNikulTurka
Copy link

I am experiencing a build failure when trying to install and run react-native-code-push in my React Native project.
The error occurs while Gradle is resolving dependencies.

[Fatal Error] apkzlib-7.3.1.pom:2:90: The markup in the document following the root element must be well-formed.
[Fatal Error] documentfile-1.0.0.pom:2:90: The markup in the document following the root element must be well-formed.

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all dependencies for configuration ':app:debugCompileClasspath'.
Could not resolve project :react-native-code-push. Required by: project :app
No matching variant of project :react-native-code-push was found.

Steps to Reproduce
Install CodePush in my project:
npm install react-native-code-push
npx pod-install
Run the Android build command:
npx react-native run-android
The build fails with the above Gradle error.

🔧 Environment Details

React Native Version : 0.75.4

Image

react-native-code-push : ^9.0.1

@IlyaBausovAkvelon
Copy link

Hi @AsurNikulTurka,
Thank you for reporting this issue. The probable cause of these errors is corrupted gradle cache. Could you please try to rebuild your android app:

  1. Clean gradle cache for your OS user:
    rm -rf ~/.gradle/caches
  2. Clean build you android app from android directory of your project:
    ./gradlew clean
    cd ..
    npx react-native run-android

If you are still facing this issues after that, please provide us repository with simple demo application so we could debug the problem.

@IlyaBausovAkvelon
Copy link

Closing this issue due to inactivity.

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

2 participants