Browse Source

makepanda: fix error when building on Android without specifying --target

rdb 6 years ago
parent
commit
4f4b79295f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      makepanda/makepandacore.py

+ 2 - 0
makepanda/makepandacore.py

@@ -2479,6 +2479,8 @@ def SdkLocateAndroid():
         return
 
     # Allow ANDROID_API/ANDROID_ABI to be used in makepanda.py.
+    if ANDROID_API is None:
+        SetTarget('android')
     api = ANDROID_API
     SDK["ANDROID_API"] = api