You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
Is there a way to access Activity in modules at app start?
I have an Activity in the module and I want to replace the launcher Activity from the AndroidManifest.xml (replace name with activity inside the module).
using apktool to unpack -> replace launcher name -> repack lead to an error ClassNotFound:
07-17 22:32:22.503 30184 30184 E AndroidRuntime: FATAL EXCEPTION: main
07-17 22:32:22.503 30184 30184 E AndroidRuntime: Process: com.example.app, PID: 30184
07-17 22:32:22.503 30184 30184 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.app/com.example.module.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.module.MainActivity" on path: DexPathList[[zip file "/data/user/0/com.example.app/cache/lspatch/origin/3250618975.apk"],nativeLibraryDirectories=[/data/app/~~QNVdXHfsMXxeZDfFbsm9-Q==/com.example.app-wPdAH8IJ-TWqsmiGUrsVHA==/lib/arm64, /data/user/0/com.example.app/cache/lspatch/origin/3250618975.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a way to access Activity in modules at app start?
I have an Activity in the module and I want to replace the launcher Activity from the
AndroidManifest.xml
(replace name with activity inside the module).using
apktool
to unpack -> replace launcher name -> repack lead to an errorClassNotFound
:any help will be appreciated
Beta Was this translation helpful? Give feedback.
All reactions