How to perform minification and obfuscation with the JACK compiler?

J.A.C.K. obfuscation does not appear to be supported in the latest released Gradle Plugin (v2.1.0). If you enable JACK when using the latest v2.1.0 plugin, it will tell you Jack requires Build Tools 24.0.0 or later requiring you to use the preview tools. Using android gradle v2.2.0-alpha1, Build Tools-v24rc4, Platform Tools-v24rc3, and Sdk Tools-v25.1.7rc1 I … Read more

Cannot find a version of ‘com.android.support:support-annotations’ that satisfies the version constraints

The problem is solved! I needed to add implementation ‘com.android.support:support-annotations:28.0.0′ under dependencies in android/app/build.gradle in my library. The message warning was enough explicit to do that, but I didn’t think about modifying the library dependencies.

Xamarin.Android Proguard – Unsupported class version number 52.0

You need to update the default Android SDK proguard.jar with the latest version of Proguard found here: https://sourceforge.net/projects/proguard/files/ I would recommend that you install this on the side of the default version that Android ships in android-sdk\tools\proguard. Simply rename the existing folder to something else and add the new version of proguard. This is listed … Read more

What is the difference between proguard-android.txt and proguard-rules.pro ? – Android

The getDefaultProguardFile(‘proguard-android.txt’) method obtains the default ProGuard settings from the Android SDK tools/proguard/ folder. The proguard-android-optimize.txt file is also available in this Android SDK folder with the same rules but with optimizations enabled. ProGuard optimizations perform analysis at the bytecode level, inside and across methods to help make your app smaller and run faster. Android … Read more

Proguard causing runtime exception with Android Navigation Component

I know that Proguard and R8 should be keeping all the children of library classes but in this case, the fragment class seems to be missing. This keep rule solved my issue but technically we should not need this rule at all! -keep class * extends android.support.v4.app.Fragment{} If you are using AndroidX, then use this … Read more

Error:Execution failed for task ‘:android:transformClassesAndResourcesWithProguardForRelease’

This bug happens when the versions of SDK, Build Tools and Gradle Plugins doesn’t match (in terms of compatibility). The solution is to verify if you are using the latest versions of them. The gradle plugins are placed in the build.gradle file of the project. Other versions are in the build.gradle file of the module. … Read more

Proguard issue “Warning:Ignoring InnerClasses attribute for an anonymous inner class”

Try adding -keepattributes InnerClasses -dontoptimize to the ProGuard config. That should fix the problem. It’s probable that incompatible optimizations are applied (that probably causes the last line of the error log). If you want to allow optimizations, it’s necessary to fine tune optimizations config with -optimizations optimization_filter option in ProGuard config.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)