PDA

View Full Version : Android API level is not specified, please check your config file



Shawn.Zhang
10 Mar 2012, 9:15 PM
When I executed "sencha package configAndroid.json", I received the following message:
Android API level is not specified, please check your config file
Failed to package application

OS: Windows 7 x64
SenchaSDKTools location: C:\SenchaSDKTools-2.0.0-Beta
AndroidSDK location: C:\Program Files (x86)\Android\android-sdk

configAndroid.json:

{
"applicationName":"SurveyApp",
"applicationId":"com.survey.SurveyApp",
"versionString":"1.0",
"iconName":"icon.png",
"inputPath":"webapp/",
"outputPath":"build/",
"configuration":"Debug",
"platform":"AndroidEmulator",
"deviceType":"Universal",
"certificatePath":"survey.keystore",
"certificateAlias":"surveykey",
"sdkPath":"C:/Program Files (x86)/Android/android-sdk",
"orientations": [
"portrait",
"landscapeLeft",
"landscapeRight",
"portraitUpsideDown"
]
}


I changed "sdkPath":"C:/Program Files (x86)/Android/android-sdk" to "sdkPath":"C:\\Program Files (x86)\\Android\\android-sdk", but still the same problem.

How can I do?

Shawn.Zhang
11 Mar 2012, 12:22 AM
I should use "sencha touch sdk", instead of "sencha sdk tools".
I will try it.

Philipp.Glatza
11 Mar 2012, 11:24 PM
Same problem here "Android API level is not specified, please check your config file".

- Win7 x64
- SenchaSDKTools-2.0.0-Beta-windows.exe
- command "sencha" is available everywhere, so i assume the installation was successful
- Android SDK dirs tools\ and platform-tools\ are set in PATH variable, also

arnoudius
13 Mar 2012, 1:43 AM
I get the same error message when trying to create an Android APK.

My config file:

{
"applicationName": "Test",
"applicationId": "nl.test.test",
"outputPath": "C:/sencha/app",
"iconName": "C:/sencha/app/icon.png",
"versionString": "1.0",
"inputPath": "C:/xampp/htdocs/sencha_app/",
"configuration": "Release",
"platform": "Android",
"certificatePath": "C:/my-release-key.keystore",
"certificateAlias": "key1",
"sdkPath": "C:/android-sdk",
"orientations": [
"portrait"
],
"deviceType": ""
}

Environment:
- Windows 7 x64
- SenchaSDKTools-2.0.0-Beta

phpkunst
13 Mar 2012, 2:06 AM
The seem problem here is there a solution?
(win 7 + sencha touch sdk 2.0.0 beta)

Application already builded on my macbook!

arnoudius
15 Mar 2012, 7:29 AM
Adding the "androidAPILevel: "7" property to the config file solved my problem.

aw1zard2
16 Mar 2012, 1:11 PM
Android API Levels...

http://developer.android.com/guide/appendix/api-levels.html






Android 4.0.3 (http://developer.android.com/sdk/android-4.0.3.html)
15 (http://developer.android.com/sdk/api_diff/15/changes.html)
ICE_CREAM_SANDWICH_MR1 (http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#ICE_CREAM_SANDWICH_MR1)
Platform Highlights (http://developer.android.com/sdk/android-4.0-highlights.html)


Android 4.0, 4.0.1, 4.0.2 (http://developer.android.com/sdk/android-4.0.html)
14 (http://developer.android.com/sdk/api_diff/14/changes.html)
ICE_CREAM_SANDWICH (http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#ICE_CREAM_SANDWICH)


Android 3.2 (http://developer.android.com/sdk/android-3.2.html)
13 (http://developer.android.com/sdk/api_diff/13/changes.html)
HONEYCOMB_MR2 (http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#HONEYCOMB_MR2)



Android 3.1.x (http://developer.android.com/sdk/android-3.1.html)
12 (http://developer.android.com/sdk/api_diff/12/changes.html)
HONEYCOMB_MR1 (http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#HONEYCOMB_MR1)
Platform Highlights (http://developer.android.com/sdk/android-3.1-highlights.html)


Android 3.0.x (http://developer.android.com/sdk/android-3.0.html)
11 (http://developer.android.com/sdk/api_diff/11/changes.html)
HONEYCOMB (http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#HONEYCOMB)
Platform Highlights (http://developer.android.com/sdk/android-3.0-highlights.html)


Android 2.3.4
Android 2.3.3 (http://developer.android.com/sdk/android-2.3.3.html)
10 (http://developer.android.com/sdk/api_diff/10/changes.html)
GINGERBREAD_MR1 (http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#GINGERBREAD_MR1)
Platform Highlights (http://developer.android.com/sdk/android-2.3-highlights.html)


Android 2.3.2
Android 2.3.1
Android 2.3 (http://developer.android.com/sdk/android-2.3.html)
9 (http://developer.android.com/sdk/api_diff/9/changes.html)
GINGERBREAD (http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#GINGERBREAD)


Android 2.2.x (http://developer.android.com/sdk/android-2.2.html)
8 (http://developer.android.com/sdk/api_diff/8/changes.html)
FROYO (http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#FROYO)
Platform Highlights (http://developer.android.com/sdk/android-2.2-highlights.html)


Android 2.1.x (http://developer.android.com/sdk/android-2.1.html)
7 (http://developer.android.com/sdk/api_diff/7/changes.html)
ECLAIR_MR1 (http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#ECLAIR_MR1)
Platform Highlights (http://developer.android.com/sdk/android-2.0-highlights.html)


Android 2.0.1 (http://developer.android.com/sdk/android-2.0.1.html)
6 (http://developer.android.com/sdk/api_diff/6/changes.html)
ECLAIR_0_1 (http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#ECLAIR_0_1)


Android 2.0 (http://developer.android.com/sdk/android-2.0.html)
5 (http://developer.android.com/sdk/api_diff/5/changes.html)
ECLAIR (http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#ECLAIR)


Android 1.6 (http://developer.android.com/sdk/android-1.6.html)
4 (http://developer.android.com/sdk/api_diff/4/changes.html)
DONUT (http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#DONUT)
Platform Highlights (http://developer.android.com/sdk/android-1.6-highlights.html)


Android 1.5 (http://developer.android.com/sdk/android-1.5.html)
3 (http://developer.android.com/sdk/api_diff/3/changes.html)
CUPCAKE (http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#CUPCAKE)
Platform Highlights (http://developer.android.com/sdk/android-1.5-highlights.html)


Android 1.1 (http://developer.android.com/sdk/android-1.1.html)
2
BASE_1_1 (http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#BASE_1_1)



Android 1.0
1
BASE (http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#BASE)

aw1zard2
16 Mar 2012, 1:22 PM
I added a Documentation bug for Sencha Touch 2.

http://www.sencha.com/forum/showthread.php?150418-Documentation-Content-Bugs&p=757965&viewfull=1#post757965
Below is a copy and paste from the packager.json in the Sencha Touch 2.0 examples.



/**
* @cfg androidAPILevel
* This is android API level, the version of Android SDK to use, you can read more about it here:
* http://developer.android.com/guide/appendix/api-levels.html.
* Be sure to install corresponding platform API in android SDK manager (android_sdk/tools/android)
*/
"androidAPILevel":"15",

ronaldoneal
10 Apr 2012, 11:55 AM
Spaces cause problems in path name. "Old School" solution that works.

Path to X86 32 bit - C:/Progra~1/Android/android-sdk

Path to X86 64 bit - C:/Progra~2/Android/android-sdk

dmthiago
10 Apr 2012, 7:45 PM
Adding the "androidAPILevel: "7" property to the config file solved my problem.

Thanks, I was having this issue too and this solved my problem!