Problems building a release .apk in react-native-maps - android

cd android && gradlew clean and I get error;
not delete ..\node_modules\react-native-maps\lib\android\build.gradle and then I was delete this file
Finally When I want to generate apk from react-native I get this errors
Could not determine the dependencies of task ':app:compileReleaseJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:releaseCompileClasspath'.
> Could not resolve project :react-native-maps.
Required by:
project :app
> Unable to find a matching configuration of project :react-native-maps:
- None of the consumable configurations have attributes.

Related

com.github.nanchen2251:CompressHelper:1.0.6 gradle dependency is failing

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?

Errors building a flutter and firebase app: Could not determine the dependencies of task

I am using IntelliJ Idea to build this car rental app in flutter and firebase https://github.com/Singh-Shivani/hopOn . I tried various things like changing dependencies version etc but still, I am not able to make it work. I get the following error now. Any directions please.
Could not determine the dependencies of task ':app:preDebugBuild'.
Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not resolve androidx.window:window:[1.0.0-beta04].
Required by:
project :app > project :firebase_core > io.flutter:flutter_embedding_debug:1.0.0-caaafc5604ee9172293eb84a381be6aadd660317 > androidx.window:window-java:1.0.0-beta04
> Failed to list versions for androidx.window:window.
> Unable to load Maven meta-data from https://google.bintray.com/exoplayer/androidx/window/window/maven-metadata.xml.
> Could not get resource 'https://google.bintray.com/exoplayer/androidx/window/window/maven-metadata.xml'.
> Could not GET 'https://google.bintray.com/exoplayer/androidx/window/window/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

Android offline install com.android.tools.build:builder:3.3.0

boycotting our country with all of our IPs by Google i can't build Android project which i made that with Flutter, so i get this error:
* What went wrong:
A problem occurred configuring project ':path_provider'.
> Could not resolve all artifacts for configuration ':path_provider:classpath'.
> Could not find builder-3.3.0.jar (com.android.tools.build:builder:3.3.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.3.0/builder-3.3.0.jar
> Could not get unknown property 'android' for project ':path_provider' of type org.gradle.api.Project.
now i can download this file and i want to know witch directory this file should be paste? i think after past this file i can install that offline
I think it will be easier to add the jar to the gradle config:
dependencies {
compile files('lib/local.jar')
}
https://discuss.gradle.org/t/put-jar-file-to-cache-manually/29488

Could not determine the dependencies of task ':app:preReleaseBuild'

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

How do I cause gradle command-line builds to install multidex from a clean build?

I'm having issues trying to do a command line build of our Android project from a clean build (for Jenkins CI). If I open the project in Android Studio and run Tools > Android > Sync Project with Gradle Files, I can subsequently build from the command line. However if I try to run ./gradlew build from the command line without first opening the project in Android Studio, I receive the following build failure:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':Redacted'.
> Could not resolve all dependencies for configuration ':Redacted:_debugCompile'.
> Could not find com.android.support:multidex:1.0.0.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/multidex/1.0.0/multidex-1.0.0.pom
https://repo1.maven.org/maven2/com/android/support/multidex/1.0.0/multidex-1.0.0.jar
https://jcenter.bintray.com/com/android/support/multidex/1.0.0/multidex-1.0.0.pom
https://jcenter.bintray.com/com/android/support/multidex/1.0.0/multidex-1.0.0.jar
http://download.crashlytics.com/maven/com/android/support/multidex/1.0.0/multidex-1.0.0.pom
http://download.crashlytics.com/maven/com/android/support/multidex/1.0.0/multidex-1.0.0.jar
Required by:
RedactedAndroid:Redacted:unspecified
> Could not find any version that matches com.android.support:support-v4:21.0.+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v4/maven-metadata.xml
https://repo1.maven.org/maven2/com/android/support/support-v4/
https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml
https://jcenter.bintray.com/com/android/support/support-v4/
http://download.crashlytics.com/maven/com/android/support/support-v4/maven-metadata.xml
http://download.crashlytics.com/maven/com/android/support/support-v4/
Required by:
RedactedAndroid:Redacted:unspecified
> Could not find any version that matches com.android.support:appcompat-v7:21.0.+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/appcompat-v7/maven-metadata.xml
https://repo1.maven.org/maven2/com/android/support/appcompat-v7/
https://jcenter.bintray.com/com/android/support/appcompat-v7/maven-metadata.xml
https://jcenter.bintray.com/com/android/support/appcompat-v7/
http://download.crashlytics.com/maven/com/android/support/appcompat-v7/maven-metadata.xml
http://download.crashlytics.com/maven/com/android/support/appcompat-v7/
Required by:
RedactedAndroid:Redacted:unspecified
> Could not find any version that matches com.google.android.gms:play-services:6.5+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/google/android/gms/play-services/maven-metadata.xml
https://repo1.maven.org/maven2/com/google/android/gms/play-services/
https://jcenter.bintray.com/com/google/android/gms/play-services/maven-metadata.xml
https://jcenter.bintray.com/com/google/android/gms/play-services/
http://download.crashlytics.com/maven/com/google/android/gms/play-services/maven-metadata.xml
http://download.crashlytics.com/maven/com/google/android/gms/play-services/
Required by:
RedactedAndroid:Redacted:unspecified
> Could not find any version that matches com.android.support:support-v4:[21,22).
Required by:
RedactedAndroid:Redacted:unspecified > com.facebook.android:facebook-android-sdk:3.22.0
> Could not find any version that matches com.android.support:appcompat-v7:21.+.
Required by:
RedactedAndroid:Redacted:unspecified > com.uservoice:uservoice-android-sdk:1.2.2
> Could not find com.android.support:support-v4:21..
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v4/21./support-v4-21..pom
https://repo1.maven.org/maven2/com/android/support/support-v4/21./support-v4-21..jar
https://jcenter.bintray.com/com/android/support/support-v4/21./support-v4-21..pom
https://jcenter.bintray.com/com/android/support/support-v4/21./support-v4-21..jar
http://download.crashlytics.com/maven/com/android/support/support-v4/21./support-v4-21..pom
http://download.crashlytics.com/maven/com/android/support/support-v4/21./support-v4-21..jar
Required by:
RedactedAndroid:Redacted:unspecified > com.uservoice:uservoice-android-sdk:1.2.2
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
To my knowledge, I have all the proper dependencies specified in my Gradle scripts:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
maven { url 'http://download.crashlytics.com/maven' }
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
}
}
And my app-level Gradle script:
...
dependencies {
...
compile 'com.android.support:multidex:1.0.0'
...
}
android {
...
Also, some of the contents of .gitignore:
# Android Studio and Gradle
build/
local.properties
.gradle
gradle-app.setting
*.iml
.idea/
*.ipr
*.iws
out/
.idea_modules/
Why can't multidex be found from a clean command line build and how do I fix this issue?
Android Studio and my command-line build were using different Android SDK installations. The one I was using on the command line didn't have some of the required Extras packages installed. Once I installed them, the build works fine.

Categories

Resources