-
Notifications
You must be signed in to change notification settings - Fork 131
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
ClassNotFoundException: Didn't find class "com.chaquo.python.PyException" #261
Comments
Please post the full stack trace, and any relevant source code. |
The problem is solved due to the release mode compression, thank you very much |
Originally posted by @zeynabimani in #358 (comment) Hi. I have almost the same problem. I just want to start Python in my android application, but when I use this code I get an error.
When I use this code in any part of the program MainActivity or somewhere else I got the error and I don't know why?! The error is:
I read the documentation, and I know one way for starting python is to change the application name in androidManifest.xml file, but I can't do this because I use a Sample Application, and I can't change the application name in the manifest file. Can you please help me find the problem? |
@tongjinlv: can you explain what you mean by this? For example, was it affected by the build variant? What exactly did you do to solve it? |
@zeynabimani: Changing the application name in the AndroidManifest.xml shouldn't be necessary, because they only thing Which devices or emulators have you tried running the app on, and did they all show the same problem? |
OK, I think I've found the cause. Try editing your build.gradle file to change every appearance of This will be fixed in the next version of Chaquopy. |
Thank you very much @mhsmith. |
This issue is fixed in Chaquopy 9.0.0. To upgrade, edit your app's top-level build.gradle file and change the version number of |
Originally posted by @tongjinlv in #43 (comment)
I compiled into release but is run error
error message:
lang.ClassNotFoundException: Didn't find class "com.chaquo.python.PyException" on path: DexPathList[[zip file "/data/app/com.matatalab.matatacode-9_fj_Bw-RN1FBE6tu42f0A==/base.apk"],nativeLibraryDirectories=[/data/app/com.matatalab.matatacode-9_fj_Bw-RN1FBE6tu42f0A==/lib/arm64, /data/app/com.matatalab.matatacode-9_fj_Bw-RN1FBE6tu42f0A==/base.apk!/lib/arm64-v8a, /system/lib64, /product/lib64]]
The text was updated successfully, but these errors were encountered: