Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for integration with Android (Procyon Decompiler) #73

Open
localacct opened this issue Jun 26, 2024 · 0 comments
Open

Support for integration with Android (Procyon Decompiler) #73

localacct opened this issue Jun 26, 2024 · 0 comments

Comments

@localacct
Copy link

localacct commented Jun 26, 2024

Hi

I was trying to integrate Procyon Decompiler library for use in my Android Studio project and I wonder if Android will be supported. I see this error in Logcat and I am not sure how to resolve it. I am running Android Emulator with Android OS version 12

06-26 15:39:12.525 19881 19881 D AndroidRuntime: Shutting down VM
06-26 15:39:12.525 19881 19881 E AndroidRuntime: FATAL EXCEPTION: main
06-26 15:39:12.525 19881 19881 E AndroidRuntime: Process: <package.name.redacted>, PID: 19881
06-26 15:39:12.525 19881 19881 E AndroidRuntime: java.lang.ExceptionInInitializerError
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at java.lang.Class.classForName(Native Method)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at java.lang.Class.forName(Class.java:454)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at com.strobel.compilerservices.RuntimeHelpers.ensureInitializedSafely(RuntimeHelpers.java:32)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at com.strobel.compilerservices.RuntimeHelpers.ensureClassInitialized(RuntimeHelpers.java:45)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at com.strobel.assembler.metadata.MetadataSystem.<clinit>(MetadataSystem.java:152)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at com.strobel.decompiler.Decompiler.decompile(Decompiler.java:34)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at com.strobel.decompiler.Decompiler.decompile(Decompiler.java:26)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at <package.name.redacted>.MainActivity.onCreate(MainActivity.kt:174)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:8051)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:8031)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3608)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3792)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:201)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:288)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7839)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Could not load metadata for java.lang.Object.
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at com.strobel.assembler.metadata.Error.couldNotLoadObjectType(Error.java:231)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	at com.strobel.assembler.metadata.BuiltinTypes.<clinit>(BuiltinTypes.java:57)
06-26 15:39:12.525 19881 19881 E AndroidRuntime: 	... 24 more
@localacct localacct changed the title Support for integration with Android Support for integration with Android (Procyon Decompiler) Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant