In this video it shows the steps to configure the Android Studio to run Python script in it. It shows the required plugin installation and then steps to solve the Python interpreter error – No Python interpreter configured for the module.
I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email at: programmerworld1990@gmail.com
Complete source code and other details:
Python code:
def add_numbers(x, y):
return x + y
answer = add_numbers(3, 9)
print(answer)
Screenshots of the setup:
Plugin to be enabled: Python Community Edition
For Python interpreter settings (to fix “No Python interpreter configured for the module” error)
And then add a local interpreter as prompted in Android Studio
To run the Python code:
Click on Run button:
Output in Run Terminal: