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
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?
* What went wrong:
Execution failed for task ':app:DownloadSources'.
> Could not resolve all files for configuration ':app:downloadSources_927fef28-7488-4483-9527-5596851d39e8'.
> Could not find com.google.android.exoplayer:exoplayer-core:2.16.1#aar.
Required by:
project :app
I am unable to download sources for any of the library, once I click on download sources, I get the above error.
(Note : None of the existing answers worked for me, either they are obsolete (or) had some other error.)
I need to add one custom task as per this answer and it works completely fine in case of a sample project I have created, but in my main project I am getting error even when I try to clean the project.
In my main project, error seems like Kotlin Multiplatform Module is not able to build and produce a jar file.
Please find the error below
A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform KotlinMultiplatformModule.jar (project :KotlinMultiplatformModule) to match attributes {artifactType=android-filtered-proguard-rules, codeShrinker=R8, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime, org.jetbrains.kotlin.localToProject=public, org.jetbrains.kotlin.platform.type=jvm}.
> Execution failed for JetifyTransform: path_to_module/build/libs/KotlinMultiplatformModule.jar.
> Transform's input file does not exist: /path_to_module/build/libs/KotlinMultiplatformModule.jar. (See https://issuetracker.google.com/issues/158753935)
Please note I have replaced my Kotlin Multiplatform module name.
Do I need to add some other task to get the jar build first ?
Or I might be completely out of the context here.
when I run react-native run-android on my windows10 these errors appear. I was able to run this app before and it used to work just fine. I've been digging the internet for a solution for a few days now but I wasn't able to fix it. can anyone help me please? I would be really appreciated.
my system specifications:
windows 10
react-native-cli: 2.0.1
react-native: 0.57.1 (I also tested 0.57.2 & 0.55.4)
babel: 4.6.1
gradle: 4.9
...............................error:
FAILURE: Build failed with an exception.
What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not resolve project :react-native-bluetooth-serial.
Required by:
project :app
Unable to find a matching configuration of project :react-native-bluetooth-serial: None of the consumable configurations have attributes.
Could not resolve project :react-native-ble-plx.
Required by:
project :app
Unable to find a matching configuration of project :react-native-ble-plx: None of the consumable configurations have attributes.
I have the build script from this project here:
https://github.com/melix/gr8confagenda/blob/master/gr8confagenda/build.gradle
But when I try to run the project, I get this error:
* What went wrong:
A problem occurred configuring project ':gr8confagenda'.
> Could not resolve all dependencies for configuration ':gr8confagenda:_debugCompile'.
> Could not find com.android.support:support-v4:19.1.0.
Required by:
gr8confagenda:gr8confagenda:unspecified
Where I'm making the mistake?