So I updated my app recently. It wasn't a huge update, some bug fixes, removed some ad networks and their respective Activity and Service entries from the manifest. Linked Fabric with Firebase which involved a few more changes. I'll detail those…
As I upgraded agp version from 4.1.0 to 7.4.2 (gradle version 7.5.1), a NoClassDefFoundError exception got and the app crashed.
Since I upgraded agp from 4.1.0 to 7.0, dx has deprecated by default and the block dexOptions have no effect and my…
i happened to encounter some wired compiled bytecode which i believe both sharing the same source code like below
class SomeWebView extends WebView {
SomeWebView() {
this.getSettings();
}
}
version 1 (above code write in app a)…
Problem (shaped like a 'V'):
We having a Java function a() - in a.java (top left of V)
a() calls another local function b() implemented via JNI - b.cpp (bottom of V)
b() creates an instance of java class C via JNI - defined in c.java (top right of…
I build a jar for the Android platform with Gradle. When I use the dx command, it works well building a jar with manifest, but dx can't support Java 8 syntax. So I have to change compile tool to d8, it supports Java 8 syntax but it removes the…
I can't get d8 dex compiler to compile my jar package:
$ wget https://repo1.maven.org/maven2/org/mockito/mockito-core/3.6.0/mockito-core-3.6.0.jar
$ java -jar d8_2.1.86.jar --output /tmp mockito-core-3.6.0.jar 2>&1 >/dev/null | grep…
I am getting the following errors in my flutter project and getting no clue how to resolve it
error:
D8: Program type already present: com.google.protobuf.AbstractMessageLite$Builder$LimitedInputStream
FAILURE: Build failed with an exception.
*…
I'm trying to use r8 without much success:
$ wget https://repo1.maven.org/maven2/com/mikepenz/fastadapter/3.2.7/fastadapter-3.2.7.aar
$ wget https://maven.google.com/com/android/support/recyclerview-v7/26.0.1/recyclerview-v7-26.0.1.aar
$ unzip…
How to determine which dex compiler (dx/d8) version+flags were used in creating my apk?
$ wget https://github.com/federicoiosue/Omni-Notes/releases/download/6.0.5/6.0.5.apk
$ cat extract_dex_compiler.py
from androguard.misc import…
I am using d8+r8+Multi-Dex to deploy my Xamarin Forms App. However, when enabling r8 I am getting some weired exception. I checked debug mode and I am getting this weired error. I have also configured proguard file to exempt some of the files, but…
For example if I wanted to set --min-api to 26: https://r8.googlesource.com/r8/+/b9cb6ae34047f19320885d9e2c594f81364fa896/src/main/java/com/android/tools/r8/D8CommandParser.java#120
I've tried various .bazelrc combinations with Bazel's -s flag on to…
I have a jar file in libs which uses android.support.v4 and I'm trying to migrate to AndroidX.
Now, Gradle sync fails until I setandroid.enableJetifier=false .
But if I set this flag to false then I get D8 error
Program type already present:
…
I have a fragment VideoPlayerBaseFragment inside a library project.
I am using this library inside my app using artifactory build
implementation
"com.mindvalley.module_videoplayer:module_videoplayer:1.9.3.6"
When I am building my app it is…
When I build big multi module project, result apk contains a lot of dex files. 35 on debug version and 15 on release. Most of files has far less methods and references then 65k.
Is there any way to compact dex files?
I also analysed several famous…
I'm using android plugin 3.4.2, gradle 5.0. I turned off R8 in gradle.properties android.enableR8 = false
But I still got a stacktrace where R8 is among packages.
Does it mean that R8 somehow still works, or it just dexer in r8 package? I know how…