Jenkins gradle build error on integrating crashlytics fabric with Android studio - android

I am using Jenkins and trying to build Android Studio project which uses the crashlytics new Fabric.
I am also using gradle 2.2.1
I get error from the following in the Jenkins log-
What went wrong:
A problem occurred evaluating project ':app'.
Failed to apply plugin [id 'io.fabric']
Could not create plugin of type 'CrashlyticsPlugin'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Any help will be appreciated.

Related

Gradle Issue in Android Studio

Extracted the android package from ionic project, opened it in Android Studio,
Distribution URL : https\://services.gradle.org/distributions/gradle-7.4-all.zip
Inside Project level build.gradle : classpath 'com.android.tools.build:gradle:7.4'
Inside cash.properties : gradle.version=7.4
Getting below error in Android Studio :
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 find com.android.tools.build:gradle:7.4.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.4/gradle-7.4.pom
- https://jcenter.bintray.com/com/android/tools/build/gradle/7.4/gradle-7.4.pom
Required by:
project :
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 746ms
What might be the Issue ?
From what i've seen here, version 7.4 is not yet available on Google maven repositories.
You could try targeting a lower version (like 7.3.0-alpha05, or 7.1.2 if you need stable release), and don't forget to set the same version to your distributionUrl.

could not resolve all dependencies for configuration ':classpath' on flutter

hi recently I upgrade and flutter to v2 and my android studio too but after that my flutter app gives a Gradle error and cant be extracted I tried too hard to do many solutions like but maven in dependency but it still gives an error.the gradle version is now 5.6 or something and one more thing all the application running well still which i made before upgrade and its gradle version is
Please help me out and the error is given below.
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project 'android'.
Could not resolve all dependencies for configuration ':classpath'.
Could not load module metadata from C:\Users\dell.gradle\caches\modules-2\metadata-2.96\descriptors\com.android.tools\annotations\27.1.0\11cd36a7dcab7d14d0c14c5e6c7582e3\descriptor.bin
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 20s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

I am getting issue after update all plugin in Phone Gap Projects in Android Platform from Android Studio

I am getting issue after update all plugin in Phone Gap Projects in Android Platform from Android Studio.
when i am trying to build the app that time i am getting this issue, for details please check my attached image .
Issue is:
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project 'android'.
Could not resolve all dependencies for configuration ':_debugApkCopy'.
Could not find com.google.firebase:firebase-messaging:11.0.1.
Required by:
project :
Could not find com.google.firebase:firebase-core:11.0.1.
Required by:
project :
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
enter image description here

OSX Gradle too old

Anyways I installed gradle and when I run terminal to compile the app, it says
Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to "30ea056c59524902d1004bd520624b7571f1ad77"
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/Test/Desktop/PieMessage/PieMessage-Android/app/build.gradle' line: 1
* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
> Could not create plugin of type 'AppPlugin'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
I would prefer not to use android studio or intellij because they are not letting me run the class for some reason, the RUN option is greyed out, only the RUN.. is available and that leads to debug.

Upgrading to Gradle 2.8 breaks my build

I was using Gradle 2.2.1 with Android plugin 1.1.3 and I was a happy man.
However, I decided upgrading to Gradle 2.8 and plugin 1.3.1 and I can't build my project. All I get is an error saying:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
> java.lang.NoSuchMethodException: com.android.build.gradle.BasePlugin.getLocalVersion()
> Task with name 'xxxxxxxxx' not found in project ':app'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
This happens whenever I try to build from both Android Studio and command-line.
Any ideas?
PS: My configuration uses the wrapper btw.

Categories

Resources