Using Buildozer:Python Flask into Android APK Pt 4: Troubleshoot“Aidl not found, please install it.”

Published: 03 August 2021
on channel: ZeroLife
718
9

REFERENCES:
[1]--https://buildozer.readthedocs.io/en/l...
[2]--(Aaron Fritz)    • Convert Kivy To Android App Using Bui...  
[3]--(Sk Sahil) https //   • Flask To apk for Android #flask,#pyth...  
[4]--(kenechukwu) Akubue    • Kivy P4A Flask Android Application(Co...  
[5]--(styssi) https://stackoverflow.com/questions/3...

24) Make your file you are running is named main.py

25) Make sure your main.py has debug=False

26) Make sure you main.py has the following at the top:
*** from android.permissions import Permission, request_permissions
*** request_permissions([Permission.READ_EXTERNAL_STORAGE,Permission.WRITE_EXTERNAL_STORAGE])

27) If you are using blueprint: env }} Lib }} site-packages }} blueprint }} rules.py
*** edit line 398: change lambda(arg): to lambda arg:

28) If you get the "Aidl not found, please install it" you need edit ./buildozer which is a hidden file in 3 locations
*** location 1: inside the buildozer
*** location 2: in the home directory (cd ~)
*** location 3: in the root directory (cd /root) you need to type 'sudo su' for enter.

29) Seeing the ./buildozer folder:
... ls -a

30) You need to find sdkmanager in the tools/bin folder. Check all 3 locations.
General area: ~/.buildozer/android/platform/android-sdk/tools/bin/

31) The command to use once you are in the tools/bin folder:
...sudo ./sdkmanager --list --sdk_root=./
...sudo ./sdkmanager --licenses --sdk_root=./
...sudo ./sdkmanager "build-tools;29.0.0" --sdk_root=~/.buildozer/android/platform/android-sdk
...sudo ./sdkmanager "platforms;android-28" --sdk_root=~/.buildozer/android/platform/android-sdk

PAT:   / rezatahirkheli  
PP: https://www.paypal.com/paypalme/rezat...
BTC: 3EUQBWZKX9Vcwdffd3cUGATQopxrAQQxJ9
LTC: MBXE6hJgxxFYSD8SjmR7sHCHGTqFXmNGoU
GFM: https://gofund.me/7d6500bd


Watch video Using Buildozer:Python Flask into Android APK Pt 4: Troubleshoot“Aidl not found, please install it.” online without registration, duration hours minute second in high quality. This video was added by user ZeroLife 03 August 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 718 once and liked it 9 people.