Python module is not supported in android studio using chaquopy

1k Views Asked by At

In my project I am trying to integrate the python into android studio using chaquopy. My android version is 4.1.1, chaquopy version is 9.1.0 and python version 3.8.6. In android studio, I have created a python folder and in it I have written python code where the android compiler is showing error in "import". I have attached the snapshot. build.gradle

python file

1

There are 1 best solutions below

2
mhsmith On

This is explained in the documentation:

To add Python editing suppport to the Android Studio user interface, you may optionally install the “Python Community Edition” plugin. However, 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.