-
Notifications
You must be signed in to change notification settings - Fork 302
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
javassist.NotFoundException #135
Comments
Thanks for reporting. Did you try with Android Studio 2.3.3? Also, could you run Gradle with an addition --stacktrace parameter? Thx! |
@sabarcor6 Any updates? We need more info on this to do something. Thanks! |
Probably failed for the same reason as in #136. |
I have the same error. Android Studio 2.3.3, Object Box 0.9.15, using Java. compileSDKversion 26, builtToolsVersion 26.0.1. MinSDK 16, targetSDK 26. Also compiling appcompat v7:26 and support v4:26. "Make Project" succeeds without issue, but build fails when trying to run on emulated device in AVD.
|
@jraiderguy Looks like a Gradle failure with maven repositories. Can you try deleting your gradle cache files (log with "/C:/Users/James%20Carney/.gradle/caches" hints at this). Or just update to 0.9.16-RC to redownload everything. |
@jraiderguy PS.: Can you verify if the file mentioned by the javassist.NotFoundException really does not exist? |
@jraiderguy weird, I checked the javassist sources and unfortunately the original IOException is just swallowed. :( |
I cloned the example and get the same error (pasted below). However, I just noticed something: the error is looking for the JAR in "/C:/Users/James%20Carney/..." and the file doesn't exist there. It exists in the path ".../James Carney/..." (with a space, not hex code). Could this be down to my User Directory having a space? Will test tonight.
|
I have confirmed that the issue was that my user directory had a space in it, which caused ObjectBox to be looking for the JAR in the wrong place, as it seems to have converted the space to a literal "%20" as shown in the previously posted error messages. In Android Studio, I changed the .gradle service directory to C:/Android/.gradle/ and the example project now works as expected. Thanks for the prompt responses today. Looking forward to getting back to playing with ObjectBox |
@jraiderguy Great find! 👍 We'll try to cover that on our end. |
If possible, could you test the behavior with 0.9.16-RC2? We did a fix but did not have a user account with spaces to test with. |
Sure, either tonight or tomorrow sometime (pacific time). |
Confirmed the fix works on 0.9.16-RC2. Changed gradle service directory back to |
@jraiderguy Thanks for verification! 👍 |
Hi, I have got a similar error on our docker container:
Apparently, the problem is with one of my folder`s name: ? (question mark) and it seems to have converted to character code: %3F Could you provide a fix for it? |
@gyorgygabor Thanks for reporting! Forwarded this to the development team. |
This was fixed internally and will be available with the next update. Thanks again for reporting! |
Follow-up to `ee43260c 0.9.16-RC2, replace %20 with space for javassist classpath if required`. objectbox/objectbox-java#135
Follow-up to `7a27b007 0.9.16-RC2, replace %20 with space for javassist classpath if required`. objectbox/objectbox-java#135
i found error when run the project, but when i try only rebuild everything is ok. i'm using android studio 3.0 Canary 8 and totally kotlin project.
the error from gradle console :
Execution failed for task ':app:transformClassesWithObjectBoxAndroidTransformForDebug'.
The text was updated successfully, but these errors were encountered: