./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?
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?
When trying to package an android app using Gluon (mvn gluonfx:package -Pandroid) I face the following error:
Execution failed for task ':app:generateDebugBuildConfig'.
Error while evaluating property 'applicationId' of task ':app:generateDebugBuildConfig'
Failed to calculate the value of task ':app:generateDebugBuildConfig' property 'applicationId'.
> Failed to query the value of property 'applicationId'.
> Package Name not found in /home/argentum/myApp/target/gluonfx/aarch64-android/gvm/android_project/app/src/main/AndroidManifest.xml, and namespace not specified. Please specify a namespace for the generated R and BuildConfig classes via android.namespace in the module's build.gradle file like so:
android {
namespace 'com.example.namespace'
}
I'm not too familiar with android and gradle but I tried to create the build.gradle file and specified the namespace as the error suggested but this made no difference. Where am I meant to specify the namespace?
I've consulted https://docs.gluonhq.com/#platforms_android_distribution_manifest and https://developer.android.com/studio/build/configure-app-module#set-namespace but I wasn't able to find the answer.
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
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'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