Flutter build appbundle giving error when using stripe - android

I am trying to build an appbundle for my flutter application. I was able to build it perfectly before, but now when I added
stripe_payment: ^1.0.11
I am getting this error:
Could not determine the dependencies of task ':app:transformClassesAndResourcesWithR8ForRelease'.
> Could not resolve all task dependencies for configuration ':app:releaseRuntimeClasspath'.
> Could not resolve net.minidev:json-smart: 2.3.0.
Required by:
project :app
> Skipped due to earlier error
> Could not resolve net.minidev:json-smart:[1.3.1,2.3].
Required by:
project :app > com.nimbusds:nimbus-jose-jwt:7.8
> Failed to list versions for net.minidev:json-smart.
> Unable to load Maven meta-data from https://google.bintray.com/exoplayer/net/minidev/json-smart/maven-metadata.xml.
> Could not get resource 'https://google.bintray.com/exoplayer/net/minidev/json-smart/maven-metadata.xml'.
> Could not GET 'https://google.bintray.com/exoplayer/net/minidev/json-smart/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
Can someone please help me with this?

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

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

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.

Cordova Android Build Issue: Could not HEAD '...packages...' > Socket Closed error

I cannot get a cordova app to build. Below you can see the stack trace:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve org.ow2.asm:asm-analysis:6.0.
Required by:
project : > com.android.tools.build:gradle:3.2.0
> Could not resolve org.ow2.asm:asm-analysis:6.0.
> Could not get resource 'https://maven.google.com/org/ow2/asm/asm-analysis/6.0/asm-analysis-6.0.pom'.
> Could not HEAD 'https://maven.google.com/org/ow2/asm/asm-analysis/6.0/asm-analysis-6.0.pom'.
> Socket closed
> Could not resolve org.ow2.asm:asm-analysis:6.0.
> Could not get resource 'https://jcenter.bintray.com/org/ow2/asm/asm-analysis/6.0/asm-analysis-6.0.pom'.
> Could not HEAD 'https://jcenter.bintray.com/org/ow2/asm/asm-analysis/6.0/asm-analysis-6.0.pom'.
> Socket closed
Anyone have any ideas? I'm not being blocked by a firewall and I'm not behind a proxy. I can't find any resources that help point to why these dependencies won't resolve.
Any help is greatly appreciated. Thanks.
EDIT: I tried a cordova clean and am having a similar issue, just a different package starts off the error stack trace:
$ cordova clean
Android Studio project detected
ANDROID_HOME=/Users/[my user folder]/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home
Subproject Path: CordovaLib
Subproject Path: app
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
> Could not download gradle-api.jar (com.android.tools.build:gradle-api:3.2.0)
> Could not get resource 'https://maven.google.com/com/android/tools/build/gradle-api/3.2.0/gradle-api-3.2.0.jar'.
> Could not HEAD 'https://maven.google.com/com/android/tools/build/gradle-api/3.2.0/gradle-api-3.2.0.jar'.
> Socket closed
> Could not download sdklib.jar (com.android.tools:sdklib:26.2.0)
> Could not get resource 'https://maven.google.com/com/android/tools/sdklib/26.2.0/sdklib-26.2.0.jar'.
> Could not HEAD 'https://maven.google.com/com/android/tools/sdklib/26.2.0/sdklib-26.2.0.jar'.
> Socket closed
> Could not download repository.jar (com.android.tools:repository:26.2.0)
> Could not get resource 'https://maven.google.com/com/android/tools/repository/26.2.0/repository-26.2.0.jar'.
> Could not HEAD 'https://maven.google.com/com/android/tools/repository/26.2.0/repository-26.2.0.jar'.
> Socket closed
> Could not download jetifier-processor.jar (com.android.tools.build.jetifier:jetifier-processor:1.0.0-alpha10)
> Could not get resource 'https://maven.google.com/com/android/tools/build/jetifier/jetifier-processor/1.0.0-alpha10/jetifier-processor-1.0.0-alpha10.jar'.
> Could not HEAD 'https://maven.google.com/com/android/tools/build/jetifier/jetifier-processor/1.0.0-alpha10/jetifier-processor-1.0.0-alpha10.jar'.
> Socket closed
I found the solution to my problem.
The gradle version the cordova app I'm running is on gradle version 3.0.1 which expects the ndk to have a specific folder in it, that provides some deprecated tooling. An answer in this stack overflow fixes that problem: Error: No toolchains found in the NDK toolchains folder for ABI with prefix: llvm
In addition, the repo lines in the gradle files needed updated to include google() in order to find all the dependencies, making it include all of the following :
mavenCentral()
google()
jcenter()
after that, the project built fine. Probably need to update the gradle version so I don't have to make deprecated stuff work. :/

How to download gradle manually?

I'm using Android Studio version 1.4 and stuck at "Gradle: resolve dependencies ':app:_releaseCompile'"
I think it cause by proxy (I don't have access to proxy) so i want to know how to download gradle maunally
I've tried all method that I found changing properties file, edit parameters but won't work anyway.
Error log:
Error:A problem occurred configuring project ':app'.
>Could not resolve all dependencies for configuration ':app:_debugUnitTestCompile'.
> Could not resolve junit:junit:4.12.
Required by:
prototype1:app:unspecified
> Could not resolve junit:junit:4.12.
> Could not get resource 'jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.
> Could not GET 'jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.
> Connection to jcenter.bintray.com refused

Categories

Resources