Proguard issues after upgrading gradle plugin - gradle

I have been trying to upgrade gradle plugin and i am running into proguard issues after the plugin update.
Proguard is removing all the required classes and i am facing run time issue.
Can anyone suggest me on debugging the proguard issues.
I have tried the following suggestion given in this link but failed to resolve the issues.

Related

Is it possible to force Gradle to downgrade version of some dependency with particular extension

I have dependencies on several plugins in project. These dependencies are put in plugins directory during project build. Here is the example:
plugin 'com.company:some-plugin:1.0#msi'
plugin 'com.company:some-plugin:1.0#pkg'
Now it is time to upgrade plugin version but for some reason I want to keep version of plugin for Mac (pkg) unchanged:
plugin 'com.company:some-plugin:2.0#msi'
plugin 'com.company:some-plugin:1.0#pkg'
How can I do it? Regular force does not help. What I see now is that Gradle upgrades version of all dependencies without considering of extension.
P.S. I use Gradle 5.2

Importing Grails project to IntelliJ IDEA using Gradle fails

When importing a Grails 3+ project to IntelliJ IDEA Ultimate, the Gradle build stops at “Starting Gradle Daemon...”.
Screenshot of IntelliJ build window
This happens when a new Grails 3 project is created using the command “grails create-app projectName” and imported to IntelliJ IDEA using Gradle.
My system configuration:
macOS Catalina
IntelliJ IDEA Ultimate 2020.1
Java 8
Grails 3.3.5
Groovy 2.4.15
The Gradle build fails with no other error messages.
“gradle”, “./gradlew”, “./gradlew bootRun” commands work as expected on the terminal.
Check the Gradle JVM which is set for project and make sure it is compatible for the Gradle version used in project:
Try setting different JDKs including the 1.8 JDK there.

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.

Gradle with intellij

I'm trying to open gradle project in intellij idea v 2016.2 but I'm getting following error:
Resolve Error
No such file or directory
It looks like there was some issues with installed gradle distribution. After I updated brew and gradle issue was resolved.

Jack compilation stuck with AndroidStudio 2.3

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.

Resources