android - Gradle Build Failed: Invalid format 'com.facebook.react:react-native:' when compiling React Native pro

I'm encountering an error when running .gradlew assembleDebug in my React Native project.The err

I'm encountering an error when running ./gradlew assembleDebug in my React Native project.

The error message:


> Configure project :app
Reading env from: .env

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileProductionDebugJavaWithJavac'.
> Could not determine the dependencies of null.
   > Could not resolve all dependencies for configuration ':app:androidJdkImage'.
      > Invalid format: 'com.facebook.react:react-native:'. Group, name and version cannot be empty. Correct example: '.gradle:gradle-core:1.0'


What I've tried: Deleting node_modules and running yarn install again.

Running cd android && ./gradlew clean before building.

Checking android/app/build.gradle but couldn't find any empty dependencies.

Verifying android/gradle.properties to ensure there are no invalid entries.

React Native: 0.73

Gradle: 8.0

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744216287a4563570.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信