Error!!! Wrong Android API version

397 views
Skip to first unread message

Pete.

unread,
May 14, 2011, 12:40:07 PM5/14/11
to rhomobile
I just did un-installation of instant_rhodes-2.4.1.exe and install
instant_rhodes-3.0.0.exe to Windows 7

Now when
rhodes app HelloWorld
cd HelloWorld
rake run:android

it show me Error!!! Wrong Android API version

how do I correct this problem?

Joseph

unread,
May 14, 2011, 1:33:14 PM5/14/11
to rhom...@googlegroups.com
Run rhodes-setup once again and provide the settings.. will fix it :)
 
Cheers,
Joseph


--
You received this message because you are subscribed to the Google Groups "rhomobile" group.
To post to this group, send email to rhom...@googlegroups.com.
To unsubscribe from this group, send email to rhomobile+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rhomobile?hl=en.


Pete.

unread,
May 14, 2011, 1:45:37 PM5/14/11
to rhomobile
I did run the rhodes-setup but still not working, what else could be
the problem?

Joseph

unread,
May 14, 2011, 2:07:00 PM5/14/11
to rhom...@googlegroups.com
go to build.yml of your application and change sdk and sdkversion
 
Cheers,
Joseph

Alexey Tikhvinsky

unread,
May 14, 2011, 2:46:23 PM5/14/11
to rhom...@googlegroups.com
Would you please run rake --trace config:android
and send me the output and your build.yml

-alexey

Pete.

unread,
May 15, 2011, 12:11:26 AM5/15/11
to rhomobile
(a) build.yml (which generated by rhodes app hello)

sdk: "D:/Bin/InstantRhodes/ruby/lib/ruby/gems/1.8/gems/rhodes-3.0.0"
sdkversion: 3.0.0
name: hello
version: 1.0
vendor: rhomobile
build: debug
bbver: 4.6
wmsdk: "Windows Mobile 6 Professional SDK (ARMV4I)"
applog: rholog.txt
iphone:
configuration: Debug
sdk: iphonesimulator4.3
provisionprofile:
codesignidentity:
entitlements:
BundleIdentifier: com.rhomobile.hello
BundleURLScheme: hello
wp:
productid: '0bd9fff0-6076-012e-652f-0022fa1199a2'

extensions: ["json", "another-extension"]


(b) The output of rake --trace config:android

(in T:/Workplace_2/Rhodes/hello)
** Invoke config:android (first_time)
** Invoke config:set_android_platform (first_time)
** Execute config:set_android_platform
** Invoke config:common (first_time)
** Execute config:common
** Execute config:android
Use Google addon API: false
+++ Looking for platform...
+++ API LEVEL of D:/Bin/android-sdk-windows/platforms/android-10: 10
+++ API LEVEL of D:/Bin/android-sdk-windows/platforms/android-11: 11
+++ API LEVEL of D:/Bin/android-sdk-windows/platforms/android-12: 12
+++ API LEVEL of D:/Bin/android-sdk-windows/platforms/android-3: 3
+++ API LEVEL of D:/Bin/android-sdk-windows/platforms/android-4: 4
+++ API LEVEL of D:/Bin/android-sdk-windows/platforms/android-7: 7
+++ API LEVEL of D:/Bin/android-sdk-windows/platforms/android-8: 8
+++ API LEVEL of D:/Bin/android-sdk-windows/platforms/android-9: 9
Found API levels:
3
4
7
8
9
10
11
12
Requested version:
Corresponding API level
ERROR!!! Wrong Android API version:

Alexey Tikhvinsky

unread,
May 16, 2011, 8:40:11 AM5/16/11
to rhom...@googlegroups.com
For the moment rhodes do not support Android 3.1 SDK (r12). Please download Android 3.0 SDK.
I've added a ticket to add support for new SDK:
https://www.pivotaltracker.com/story/show/13433895


--

Thomas

unread,
May 18, 2011, 4:26:13 AM5/18/11
to rhomobile
And delete the 3.1 one if you don't want this error to occur again...
I also had all the SDKs and by default it selects the last one.
So I had to delete APIs 11 and 12 to have it run by default on 2.3.

Best,
Thomas

Mari

unread,
May 21, 2011, 9:22:12 PM5/21/11
to rhomobile
When I do rake --trace config:android

I get the following output:

cd /home/mari/.rvm/gems/ruby-1.8.7-p334/gems/rhodes-3.0.0
** Invoke config:android (first_time)
** Invoke config:set_android_platform (first_time)
** Execute config:set_android_platform
** Invoke config:common (first_time)
** Execute config:common
** Execute config:android
Use Google addon API: false
+++ Looking for platform...
Found API levels:
Requested version:
Corresponding API level
ERROR!!! Wrong Android API version:

I tried installing Android SDK 2.2, 2.3.3 and 3.0 but none work.
and I did run rhodes -setup

what else should I do? Thank you for your help!

Alexey Tikhvinsky

unread,
May 23, 2011, 8:19:38 AM5/23/11
to rhom...@googlegroups.com
We fixed the problem on master branch. You can pull it from github.

If you do not want to download unreleased sources you need to delete 3.1 SDK:
Start "Android SDK and AVD Manager",
open "Installed packages" section,
select "SDK Platform Android 3.1 API 12 ....."
and press <Delete...>

-alexey

Mari

unread,
May 23, 2011, 11:08:18 AM5/23/11
to rhomobile
I do not have 3.1 installed.

Alexey Tikhvinsky

unread,
May 23, 2011, 12:16:19 PM5/23/11
to rhom...@googlegroups.com
Build script really finds no Android SDK at path you specified in rhodes-setup.

For example look at previous post from Pete with logs from rake --trace config:android.
You have to see that build scrip iterates through target platform folders in SDK:


+++ Looking for platform...
+++ API LEVEL of D:/Bin/android-sdk-windows/platforms/android-10: 10
+++ API LEVEL of D:/Bin/android-sdk-windows/platforms/android-11: 11
+++ API LEVEL of D:/Bin/android-sdk-windows/platforms/android-12: 12
+++ API LEVEL of D:/Bin/android-sdk-windows/platforms/android-3: 3
+++ API LEVEL of D:/Bin/android-sdk-windows/platforms/android-4: 4
+++ API LEVEL of D:/Bin/android-sdk-windows/platforms/android-7: 7
+++ API LEVEL of D:/Bin/android-sdk-windows/platforms/android-8: 8
+++ API LEVEL of D:/Bin/android-sdk-windows/platforms/android-9: 9

According to this log Pete was installed Android SDK to
D:/Bin/android-sdk-windows
and put this path in rhodes-setup.

Do a double check Android SDK path  you specified in rhodes-setup
Also you can check it manually: look for
/home/mari/.rvm/gems/ruby-1.8.7-p334/gems/rhodes-3.0.0/rhobuild.yml
and for this field particulary:
env:
  paths:
    android: <SDK/Path>

-alexey
Reply all
Reply to author
Forward
0 new messages