Android build failing with following exception.
Plugin: scan [https://pub.dev/packages/scan]
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:mergeDevReleaseAssets'.
Could not resolve all files for configuration ':app:devReleaseRuntimeClasspath'.
Could not resolve com.huawei.hms:scanplus:2.1.0.300.
Required by:
project :app > project :scan
> Could not resolve com.huawei.hms:scanplus:2.1.0.300.
> Could not get resource 'https://google.bintray.com/exoplayer/com/huawei/hms/scanplus/2.1.0.300/scanplus-2.1.0.300.pom'.
> Could not GET 'https://google.bintray.com/exoplayer/com/huawei/hms/scanplus/2.1.0.300/scanplus-2.1.0.300.pom'. Received status code 502 from server: Bad Gateway
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 2m 59s
add: maven {url 'http://developer.huawei.com/repo'}
check your build.gradle
Related
Yesterday I run my code and didn't get any error but just so sudden... (I didn't edit my code) I got an error log like this
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
> Could not resolve com.google.android.gms:play-services-location:[15.0.0, 16.0.0).
Required by:
project :app
> Skipped due to earlier error
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 8s
I have tried by running it using another internet connection and still I get the same result. Is there a way to solve this (this error only happen when I run it using android and run so well in ios simulator)
Plugin Version : 8.0.2021062405
When ever i run ionic cordova build android with cordova-plugin-mfp-push plguin installed i am getting the below error mentioned.
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\anis.khalfaoui\Desktop\ProxymProjects\kgoc-frontend\platforms\android\app\build.gradle' line: 102
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not resolve all artifacts for configuration 'classpath'.
> Could not resolve com.android.tools.build:gradle:+.
Required by:
unspecified:unspecified:unspecified
> Failed to list versions for com.android.tools.build:gradle.
> Unable to load Maven meta-data from https://dl.bintray.com/kotlin/kotlin-eap/com/android/tools/build/gradle/maven-metadata.xml. > Could not get resource 'https://dl.bintray.com/kotlin/kotlin-eap/com/android/tools/build/gradle/maven-metadata.xml'.
> Could not GET 'https://dl.bintray.com/kotlin/kotlin-eap/com/android/tools/build/gradle/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 15s
C:\Users\anis.khalfaoui\Desktop\ProxymProjects\kgoc-frontend\platforms\android\gradlew: Command failed with exit code 1 Error output:
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
this is the line 102 in Build file 'C:\Users\anis.khalfaoui\Desktop\ProxymProjects\kgoc-frontend\platforms\android\app\build.gradle'
apply from: "../cordova-plugin-mfp-push/ibm-build-extras.gradle"
As you see in error message, you have provided + for com.android.tools.build:gradle version in build.gradle file.
Please provide complete version like com.android.tools.build:gradle:4.0.0.
That should resolve your issue.
Thanks
* 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 com.google.android.gms:play-services-ads-identifier:12.0.1.
Required by:
project :app
> Skipped due to earlier error
> Could not resolve com.google.android.gms:play-services-ads-identifier:12.0.1.
Required by:
project :app > com.onesignal:OneSignal:3.15.3
> Skipped due to earlier error
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3m 7s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
I face this error 1 week please help me everyone my project was build from flutter 1.2.3
and I need to upgrade it because currently it's not working the problem is onesignal and firebase version not fit. Please give me any answer I need to complete this for my company I just in flutter internship
I try to build my flutter project, last month it was fine when I was doing flutter build apk but when I do flutter build apk for now.. I get this error log
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileReleaseKotlin'.
> Could not resolve all task dependencies for configuration ':app:releaseCompileClasspath'.
> Could not resolve com.google.android.gms:play-services-location:16.+.
Required by:
project :app > project :location
> Failed to list versions for com.google.android.gms:play-services-location.
> Unable to load Maven meta-data from https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml.
> Could not get resource 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml'.
> Could not GET 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml'. Received status code 403 from server: Forbidden
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 21s
and here is build.gradle: https://gist.github.com/wahyu-handayani/b38f1cc491816c6dcfeb130ab42cdbef
and build.gradle inside android folder:
https://gist.github.com/wahyu-handayani/2ab88f81869ef9a0e1575a465847e608
is there a way to solve this ?
I'm new in android apps development. I created a new ionic project. When I try in the console cordova emualte android it fails with this errors:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:2.3.0.
Required by:
project :
> Could not resolve com.android.tools.build:gradle:2.3.0.
> Could not get resource 'https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/2.3.0/gradle-2.3.0.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/2.3.0/gradle-2.3.0.pom'.
> Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.4.215] failed: Connection timed out: connect
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 7s
I try curl https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/2.3.0/gradle-2.3.0.pom in the console and worked.
Thanks for any help!!