My android project (Kotlin) needs python library that is inside a python project with other utils packages. When I imported it and opened it in Visual Studio Code everything is working, but when I put the same project inside android studio, it can't find any imported python modules. I am using Chaquo library to run python script. My python version: 3.10.6.
Asked
Active
Viewed 405 times
1 Answers
0
As it says in the Chaquopy documentation:
Chaquopy isn’t integrated with this plugin, so you’ll see the warning “No Python interpreter configured for the module”, and your code will probably display many error indicators such as “Unresolved reference” and “No module named”. These are harmless: just go ahead and run your app, and if there really is an error, the details will be displayed in the Logcat.
If you haven't already, you'll also need to list the library in the pip
block of your build.gradle file.

mhsmith
- 6,675
- 3
- 41
- 58