Skip to content

Commit 9b855b2

Browse files
committed
build with the API level setted in bash
1 parent fa961a6 commit 9b855b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,9 @@ def make_package(args):
242242
args=args)
243243

244244
# Update the project to a recent version.
245+
android_api = 'android-%s' % os.environ.get('ANDROIDAPI', '8')
245246
try:
246-
subprocess.call([ANDROID, 'update', 'project', '-p', '.', '-t', 'android-8'])
247+
subprocess.call([ANDROID, 'update', 'project', '-p', '.', '-t', android_api])
247248
except (OSError, IOError):
248249
print 'An error occured while calling', ANDROID, 'update'
249250
print 'Your PATH must include android tools.'

0 commit comments

Comments
 (0)