Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
2.5.0
-
None
-
Linux
Description
When creating a new app for Android, lines 98 and 99 are as follows:
TARGET=$("$ANDROID_BIN" list targets | grep id: | tail -1 | cut -f 2 -d ' ' )
API_LEVEL=$("$ANDROID_BIN" list target | grep "API level:" | tail -n 1 | cut -f 2 -d ':' | tr -d ' ')
The "Getting Started" Guide says we should create a path to "/somedirectory/android_sdk/tools" and "/somedirectory/android_sdk/platform-tools"
However, we get an error that shows that "/somedirectory/android_sdk/tools" is a directory.
Lines 98 and 99, and perhaps others that use "$ANDROID_BIN" should actually be "$ANDROID_BIN"/android to run the actual "android" tool.
Since "$ANDROID_BIN" list target translates to: /somedirectory/android_sdk/tools list target and will not run.
But "$ANDROID_BIN"/android list target translates to: /somedirectory/android_sdk/tools/android list target and WILL run.