Jack compilation stuck with AndroidStudio 2.3 - gradle

I have upgraded my AndroidStudio today to latest stable version 2.3 (with gradle plugin 2.3.0 and gradle 3.3): now, I am not able to build my project which ran fine under AndroidStudio 2.2.3.
When I try, I am stuck at :app:transformJackWithJackForDebug as long as I don't kill my java platform process.
It is the same problem than this post I guess but on stable release.
Any help will be greatly appreciated :)

I killed many hours for the same issues after that i got link and its working fine at my end.
To use "Retrolambda" add few dependency.
dependency to your build.gradle file.
classpath 'me.tatarka:gradle-retrolambda:3.2.0'
Added dependency into app/build.gradle file.
apply plugin: 'me.tatarka.retrolambda'
Please clean your build and run. it will work fine.
For more detail please visit below link:
http://www.vogella.com/tutorials/Retrolambda/article.html
https://barta.me/lambda-expressions-in-android/
all the best.

With Android Studio 3.0 (plugin 3.0) they are recommending to disable the Jack compiler as its been deprecated.

Related

Upgrade Maven Version in Windows

I want to upgrade to Maven latest version from 3.2.2v in windows. I know that there is a command as I used it before, but unable to recollect it now and haven't found in google even after an hour. So, can some one please help me with the command.
Thanks,
Likitha
Maven has no command to upgrade to Maven 3.X. You should download and extract new version.

How to solve : The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher.?

i have tried so many diffrent solutions on stack / git , none of them worked so far ..
So the problem is when i'm trying to build my apk on release mode ofc , they shoot me with a problem which is basically about some compatibility i guess .
* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher.
The following dependencies do not satisfy the required version:
root project 'android' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71
this problem only showed up after installing this package : folder_file_saver
Any help would be appreciated .
ps: I ran flutter pub get .. and pub upgrade .. everything went well ..
Well flutter is not upgraded to the last version , i like that current version more .
I was having the same issue. The solution that worked for me was reopening the project and ignoring the Plugin Update Recommendation at the bottom right of the screen.
Once I stopped the clicking update, the error went away.

Running Gradle on macbook

I have recently bought a macbook and tried to install Gradle with brew install gradle
When I do gradle -v I get my Gradle specifications with no problem, bit when I try to run a Gradle task on my project I got this error:
org.gradle.api.tasks.SourceSetOutput.getClassesDir()Ljava/io/File;
On windows I usually compile the project by doing ./gradlew task_name, but the ./gradlew isn't working here on Mac OS.
What Im I doing wrong?
SourceSetOutput.getClassesDir() was deprecated in Gradle 4 and removed in Gradle 5. It's now SourceSetOutput.getClassesDirs(). I'm guessing you are running a newer version of Gradle on the macbook than you were running on the Windows box. A simple fix is to downgrade the Gradle version.
If you want to actually fix your build to work with Gradle 5+ I suggest you run with --stacktrace on the command line to find out what's using the old API (ie if it's your Gradle script or one of your plugins).
Perhaps a fix is as simple as upgrading one or two of your plugins to a new version which supports Gradle 5+

Hudson Sonar error

I am using Hudson 3.1.0 version and sonar 3.7.4 version. SInce yesterday I am getting this weird error while doing sonar analysis:
This was working fine until yesterday. sonar-maven-plugin-3.3.0.603 version is used.Can somebody help here?
You are using a version of the SonaQube Scanner for Maven that is too recent (3.3.0.603). You should lock this version (in your POM) to an older version to make sure this keeps on working correctly.
As a side note, please consider upgrading to more recent software:
SonarQube 3.7.4 is 4 years old and no more supported (which means nobody will help you in case of trouble)
Hudson is kind-of dead - the best option for you is to move on Jenkins

first build of maven project with jenkins failed

I am trying to start my first build on Jenkins, but it failed, since I am a beginner, even I got those console output, still don't know how to solve the problem, anyone can help me?jenkins version: 1.6.0.4 JDK: 1.8.0 maven:3.5.0
enter image description here
It is a bug opened with maven 3.5.0
https://issues.jenkins-ci.org/browse/JENKINS-43446
Downgrading the maven to any old stable version, i.e., 3.2.5 or 3.3.1, would make it work.

Resources