'Could not determine the dependencies of task ':app:compileReleaseJavaWithJavac'. In React Native
I got this problem when I build my app in release mode using App Center.
* What went wrong:
Could not determine the dependencies of task ':app:compileReleaseJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:releaseCompileClasspath'.
> Could not resolve com.facebook.infer.annotation:infer-annotation:0.11.2.
Required by:
project :app > com.facebook.react:react-native:0.63.4
> Skipped due to earlier error
> Could not resolve com.facebook.yoga:proguard-annotations:1.14.1.
Required by:
project :app > com.facebook.react:react-native:0.63.4
> Skipped due to earlier error
> Could not resolve com.facebook.fresco:fresco:2.0.0.
Required by:
project :app > com.facebook.react:react-native:0.63.4
> Skipped due to earlier error
> Could not resolve com.facebook.fresco:imagepipeline-okhttp3:2.0.0.
Required by:
project :app > com.facebook.react:react-native:0.63.4
> Skipped due to earlier error
> Could not resolve com.facebook.soloader:soloader:0.9.0.
Required by:
project :app > com.facebook.react:react-native:0.63.4
> Skipped due to earlier error
> Could not resolve com.squareup.okhttp3:okhttp:3.12.12.
Required by:
project :app > com.facebook.react:react-native:0.63.4
> Skipped due to earlier error
> Could not resolve com.squareup.okhttp3:okhttp-urlconnection:3.12.12.
Required by:
project :app > com.facebook.react:react-native:0.63.4
> Skipped due to earlier error
> Could not resolve com.squareup.okio:okio:1.15.0.
Required by:
project :app > com.facebook.react:react-native:0.63.4
> Skipped due to earlier error
> Could not resolve com.facebook.fbjni:fbjni-java-only:0.0.3.
Required by:
project :app > com.facebook.react:react-native:0.63.4
> Skipped due to earlier error
I think this problem shows up when I add new package (react-native-dropdown-picker).
I tried ./gradlew clean
, delete node_modules and reinstall the node_modules, but the problem still persist. But it works fine when the build mode is debug.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|