Question
LinkageError: Method onCreate overrides final method
Generate Signed App APK
used to work flawlessly for an app of mine until... I upgraded Android Studio to 2024.1.1.
It still builds and runs perfectly when generating debug
APK. However, when I attempt to generate a release
APK, it builds successfully, but when the app is launched on the smartphone, it crashes immediately with this FATAL EXCEPTION:
java.lang.LinkageError:
Method void com.me.koalawoes.MyAppActivity.onCreate(android.os.Bundle)
overrides final method in class Lcom/me/mylib/core/MyActivity;
(declaration of 'com.me.koalawoes.MyAppActivity'
appears in /data/app/~~sHPI9ai93DWU6FOp_edr9A==/com.me.koalawoes-8LbG6dXPeAvMUDEvK-x8jQ==/base.apk)
But...MyActivity's onCreate
is not declared final at all:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
What could I be missing?