|
FOROS PROFESIONALES WINDEV, WEBDEV y WINDEV Mobile |
| | | | | |
| wm20:Android error for generation of APK file |
| Iniciado por guest, 21,abr. 2015 00:21 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 21,abril 2015 - 00:21 |
Hi All
I have errors as below as I am new to Android's dev:
Failure creating the Android application named <C:\My Mobile Projects\helloAndroid\Exe\helloAndroid.apk>. Command Line: .\uild-tools\22.0.1\aapt.exe package -m -J "C:\My Mobile Projects\helloAndroid\Android\Generation\gen" -M "C:\My Mobile Projects\helloAndroid\Android\Generation\AndroidManifest.xml" -S "C:\My Mobile Projects\helloAndroid\Android\Generation\ es" -I "platforms\android-22\android.jar"
Error returned: C:\My Mobile Projects\helloAndroid\Android\Generation\AndroidManifest.xml:2: error: Error: No resource found that matches the given name (at 'resource' with value '@xml/searchable').
But I could generate GPS sample program into APK and run as a charm in Samsung Alpha. Therefore I wrote a simple info("Hello World") and compiled but couldn't generate any APK but with errors as above
I'm only familiar with ios and this is new to me as I just got a Samsung Alpha to test out with wm20.
Any help would be great?
p.s. I downloaded the latest Android-sdk with serveral platforms as below:
Directory of C:\android-sdk\platforms
04/20/2015 03:23 PM <DIR> android-19 04/20/2015 03:24 PM <DIR> android-20 04/20/2015 03:26 PM <DIR> android-22
Thx in advance to help out.
Cheers
King |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,abril 2015 - 14:36 |
Hi King,
I don't know if you found your answer. I have no experience with WM. But based on the error message it looks like the manifest file is looking for a resource file named "@xml/searchable". Do you have that "xml" folder and "searchable" file in "C:\My Mobile Projects\helloAndroid\Android\Generation\ es" or in some other android resource folder?
It is not impossible that you have to download these resources from the api download interface provided with the android SDK. (Because not everything is downloaded, some stuff is optional.)
You probably did it already, but you can send the question to the Free Technical Support.
As a side note, it is not necessary to download many API version of android, but only the API versions you want to build your application with to be compatible with. So if you want your application to have Android 2.3.x as minimum requirement, you compile with API version 9. (See <a class="ExternalLink" rel="nofollow" target="_blank" href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html">http://developer.android.com/guide/topics/manifest/uses-sdk-element.html</a>.)
Best regards, Alexandre Leclerc |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,abril 2015 - 17:32 |
Thanks for your info Alexandre
I might download everything of SDK for every version as many as possible but it's quite big and time consuming for download such.
Strange indeed, APK can be generated perfectly with wm20 examples given, this is a bit scratching my head and each compilation takes about 5 mins (i3 and traditional HD).
I will shoot such to support or I read it thru' again the link you gave me.
I am also out of the loop for developingWindows WMs, it's so different from 6.5 ( wm14, long long ... time).
Using wm19 or 20 to deploy IOS is the easiest for me so far especially using QR scan program.
For short, I just use one of given wm example to add windows/controls & hfSql, it works but not working at all with a New Project, such workaround is funny but it works.
Thx anyway.
Cheers
King |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,abril 2015 - 19:50 |
Works after downloading GOOGLE play services but I still couldn't figure out why the given example can generate APK without it.
Anyway, it's a good start to play around.
Thanks again Alexandre Leclerc
Cheers
King <img src="/NG2013_WEB/ui/smiley/1.gif" align=absmiddle border=0 alt=":)"> |
| |
| |
| | | |
|
| | | | |
| | |
| | |
| |
|
|
|