This is the issue after installing react-native-codepush.
Could not determine the dependencies of task ':app:mergeDebugAssets'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not resolve project :react-native-code-push.
Required by:
project :app
> No matching configuration of project :react-native-code-push was found. The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' but:
- None of the consumable configurations have attributes.
In your android/settings.gradle.
add these lines and you are good to go:
********************************************************
include ':app', ':react-native-code-push'
project(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app')
********************************************************
As I wasn't able to find any solution on StackOverflow. So, I thought to write this here.
Here's the original answer: https://github.com/microsoft/react-native-code-push/issues/1873
Related
The android gradle project that I started working has the dependency com.github.nanchen2251:CompressHelper:1.0.6. But whenever I try to build the project it failing with the following error.
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not resolve com.github.nanchen2251:CompressHelper:1.0.6.
Required by:
project :app
> Could not resolve com.github.nanchen2251:CompressHelper:1.0.6.
> Could not get resource 'https://mapbox.bintray.com/mapbox/com/github/nanchen2251/CompressHelper/1.0.6/CompressHelper-1.0.6.pom'.
> Could not HEAD 'https://mapbox.bintray.com/mapbox/com/github/nanchen2251/CompressHelper/1.0.6/CompressHelper-1.0.6.pom'.
> Certificate for <mapbox.bintray.com> doesn't match any of the subject alternative names: [*.jfrog.io, jfrog.io]
How can we identify if the library is still available?
./gradlew clean assembleDebug
Could not determine the dependencies of task ':demoApp:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':demoApp:debugCompileClasspath'.
> Could not resolve project :mepAnalytics.
Required by:
project :demoApp > project :VisaInAppCore
> No matching configuration of project :mepAnalytics was found. The consumer was configured to find an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.gradle.internal.dependency.AndroidTypeAttr' with value 'Aar', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- None of the consumable configurations have attributes.
But I have already configure the project module in settings.gradle
include ':mepAnalytics'
project(':mepAnalytics').projectDir = new File('../mep_analytics_sdk_android/mepAnalytics')
Anyone knows why?
Then on building or launhcing on my device i get following error:
Could not determine the dependencies of task ':app:compileFreeDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:freeDebugCompileClasspath'.
> Could not resolve project :capacitor-android.
Required by:
project :app
> No matching configuration of project :capacitor-android was found. The consumer was configured to find an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'minApi' with value '____free', attribute 'tier' with value 'free', attribute 'abi' with value 'x86' but:
- None of the consumable configurations have attributes.
It is building my project using grable.
I have tried Build Clean, Build Rebuild and File > Invlaidate Caches and Resatrt as well.
Kindly help.
Installing jetifier solved my error
by executing npm install jetifier
Jetifier tool migrates support-library-dependent libraries to rely on the equivalent AndroidX package
I have just added react-native-firebase/firestore v6.2.0 to my React Native app. It was previously building fine whilst using the auth and messaging modules.
Now when I build the app I get the error:
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not find com.google.firebase:firebase-bom:21.3.0.
Searched in the following locations:
...
Required by:
project :app > project :#react-native-firebase_messaging
project :app > project :#react-native-firebase_app
project :app > project :#react-native-firebase_auth
I'm not sure what this file is or why it would have been removed.
Any help much appreciated!
After some tracking I noticed that com.google.firebase:firebase-bom:21.3.0 is missing in the
Maven repositories
Which makes me believe it never existed. After some tracking in the react-native-firebase files I noticed that tag v6.1.0 has com.google.firebase:firebase-bom:21.1.0 for some packages except for firestore, which has com.google.firebase:firebase-bom:21.3.0. And this is repeated for v6.2.0
So... yeah, It may have been problem updating the dependencies. I may upload an issue to address this.
My solution was to use version v6.0.3
You can manually edit the following file in your local node_modules: https://github.com/invertase/react-native-firebase/blob/v6.1.0/packages/firestore/android/build.gradle
I'm trying to create project to .apk file but got this error when I type - ./gradlew bundleRelease:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:preReleaseBuild'.
> Could not resolve all task dependencies for configuration ':app:releaseRuntimeClasspath'.
> Could not resolve project :react-native-gesture-handler.
Required by:
project :app
> Unable to find a matching configuration of project :react-native-gesture-handler: None of the consumable configurations have attributes.
I know there are some questions like mine but none is exact the same. I'm sorry if there is already existing solution, but I didn't found.
You may not link the library react-native-gesture-handler