Skip to content

Commit 39b70e2

Browse files
author
minggo
authored
fix compiling error with Android Studio project (#400)
1 parent 3b1d27e commit 39b70e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugins/plugin_compile/build_android.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,10 @@ def _get_build_type(self, param_of_appabi):
447447
return self._do_get_build_type(param_of_appabi)
448448

449449
# get build type from Application.mk
450-
applicationmk_path = os.path.join(self.app_android_root, "jni/Application.mk")
450+
if self.use_studio:
451+
applicationmk_path = os.path.join(self.app_android_root, "app/jni/Application.mk")
452+
else:
453+
applicationmk_path = os.path.join(self.app_android_root, "jni/Application.mk")
451454
with open(applicationmk_path) as f:
452455
for line in f:
453456
if line.find('APP_ABI') == -1:

0 commit comments

Comments
 (0)