-
23 Apr 2012 2:13 AM #1Touch Premium Member
- Join Date
- Feb 2009
- Location
- Firenze, Italia
- Posts
- 156
- Vote Rating
- 0
- Answers
- 1
Unanswered: Error build to Android Emulator
Unanswered: Error build to Android Emulator
This is my configuration:
But if I run this command:Code:{ "applicationName":"ppp", "applicationId":"com.ppp.aaa", "versionString":"1.0", "iconName":"resources/icons/Icon~ipad.png", "inputPath":"build/native", "outputPath":"build/", "configuration":"Debug", "platform":"AndroidEmulator", "deviceType":"Universal", "certificatePath":"/path/to/certificate.file", "certificateAlias":"", "sdkPath":"/Applications/android-sdk-macosx", "androidAPILevel":"10", "orientations": [ "portrait", "landscapeLeft", "landscapeRight", "portraitUpsideDown" ] }
I got this error:Code:sencha app build native
This because the command try to build for wrong api level:Code:[ERROR] Error: Target id is not valid. Use 'android list targets' to get the target ids.
The command build always for api level 7 without consider "androidAPILevel" parameter.Code:"/Applications/android-sdk-macosx/tools/android" create project --target android-7 --name ppp --activity STActivity --path "/Applications/MAMP/htdocs/ppp/build/native/" --package com.ppp.aaa
I've try to install android sdk for api-level 7 and I get this error:
Where is the problem?Code:BUILD SUCCESSFUL Total time: 6 seconds "/Applications/android-sdk-macosx/tools/android" create project --target android-7 --name GEOmobi --activity STActivity --path "/Applications/MAMP/htdocs/aaa/build/native/" --package com.aaa.ppp Could not install application Failed to run packaged application [ERROR] error: device not found
Stefano
-
23 Apr 2012 10:43 PM #2Touch Premium Member
- Join Date
- Feb 2009
- Location
- Firenze, Italia
- Posts
- 156
- Vote Rating
- 0
- Answers
- 1
Message to forum admin: can you move this thread to bugs section?
Thanks
-
25 Apr 2012 5:14 PM #3
I tried to deploy the device example to test the native device controls. I was using sdktools-beta and sdk_2.0.0. I could package my app OK and all worked except for google maps and geolocation. Very frustrating. Anyway I finally saw that sdk-2.0.1 and Beta3 were released so I figured I would upgrade. That is when everything broke with the
ERROR] Error: Target id is not valid
problem. Anyway after much debugging and many this.info() statements added to the sdk code. I finally got it to work. Here is how I got by the error when building Android Native on windows. Hopefully someone can figure that one out soon.
- Install SenchaSDKTools-Beta
- Rename C:\WINDOWS\stbuild.exe to stbuild-beta.exe
- Rename folder C:\WINDOWS\stbuild to stbuild-beta
- Uninstall SenchaSDKTools-Beta
- Manually remove SenchaSDKTools-Beta\bin from PATH
- Install SenchaSDKTools-Beta3
- Rename C:\WINDOWS\stbuild.exe to stbuild-beta3.exe (or delete)
- Rename folder C:\WINDOWS\stbuild to stbuild-beta3 (or delete)
- Rename C:\WINDOWS\stbuild-beta.exe to stbuild.exe
- Rename folder C:\WINDOWS\stbuild-beta to stbuild
-
26 Jun 2012 12:18 PM #4
"Install SenchaSDKTools-Beta"
how can i find it ?
-
10 Jul 2012 1:07 PM #5
I've got the same problem!!! need help please!! I dont know what else to do...
-
29 Sep 2012 4:00 AM #6
Same problem here
Same problem here
Did anyone find a solution for that?


Reply With Quote