diff --git a/src/build.py b/src/build.py index 6a126eb386..dfc1692d33 100755 --- a/src/build.py +++ b/src/build.py @@ -299,7 +299,7 @@ def make_package(args): # Update the project to a recent version. try: subprocess.call([ANDROID, 'update', 'project', '-p', '.', '-t', - 'android-{}'.format(args['sdk_version'])]) + 'android-{}'.format(args.sdk_version)]) except (OSError, IOError): print 'An error occured while calling', ANDROID, 'update' print 'Your PATH must include android tools.' diff --git a/src/templates/AndroidManifest.tmpl.xml b/src/templates/AndroidManifest.tmpl.xml index db116ae9e5..050a7d2308 100644 --- a/src/templates/AndroidManifest.tmpl.xml +++ b/src/templates/AndroidManifest.tmpl.xml @@ -11,7 +11,7 @@ android:normalScreens="true" android:largeScreens="true" android:anyDensity="true" - {% if android_api >= 9 %} + {% if args.min_sdk_version >= 9 %} android:xlargeScreens="true" {% endif %} /> @@ -29,7 +29,7 @@