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

Null pointer when finding libraries #1717

Closed
dbrnz opened this issue Feb 19, 2019 · 3 comments
Closed

Null pointer when finding libraries #1717

dbrnz opened this issue Feb 19, 2019 · 3 comments

Comments

@dbrnz
Copy link
Contributor

dbrnz commented Feb 19, 2019

I've successfully built the Webview test app for Python 3, NDK 19, API 24 and am now trying to get it to run -- starting the app gives "Attempting to get length of null array" when PythonActivity tries to load the application libraries.

I've traced this to addLibraryIfExists() in ./pythonforandroid/bootstraps/common/build/src/main/java/org/kivy/android/PythonUtil.java where it appears that libsDir doesn't exist and so the files variable is set to null. I'm uncertain as to how paths values in the debugger relate to those in the FileExplorer, but the debugger has the library path as /data/user/0/com.pandq.test/lib yet File Explorer shows the libraries inside /data/app/com.pandq.test-1/lib/arm64. Is some form of versioning going on?

@j-devel
Copy link
Contributor

j-devel commented Feb 20, 2019

This libsDir is issue is being addressed in #1701.

@inclement
Copy link
Member

@dbrnz The PR #1701 that @j-devel linked has been merged, did that fix your issue?

Beyond that, maybe try NDK 17c instead of 19.

@dbrnz
Copy link
Contributor Author

dbrnz commented Mar 1, 2019

@inclement thanks, that did fix things. I'm all good with NDK 19 and Python 3, so closing.

@dbrnz dbrnz closed this as completed Mar 1, 2019
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

3 participants