Open GoogleCodeExporter opened 9 years ago
>Unable to resolve target 'android-15'
You need to download, using the SDK manager, system image for Android 4.0.3
(API 15): http://developer.android.com/tools/help/sdk-manager.html
Original comment by anthony....@gmail.com
on 29 Dec 2012 at 7:10
You need also to:
- Java Compler->Building->Build path problems - set Incomplete build path: to
Warning
- And Project->Clean
Original comment by anthony....@gmail.com
on 29 Dec 2012 at 7:12
[deleted comment]
My response to Anthony's comments 1&2
Anthony's comment-1
"""Comment 1 by project member anthony....@gmail.com, Today (20 minutes ago)
>Unable to resolve target 'android-15'
You need to download, using the SDK manager, system image for Android 4.0.3
(API 15): http://developer.android.com/tools/help/sdk-manager.html
"""
1. Opened adt-elcipse with C:\Documents and Settings\joe\workspace-adt-01 [This
is an empty workspace.]
2. Window->"Android SDK Manager"
2.1 in "Android SDK Manager" dialog
- i checked [x] Android 4.0.3 (API 15)
- Show: [x]Updates Now [x]Installed [ ]Obsolete
- Sort by (x) API Level ( ) ( )Repository
2.2 click Install 8 packages
2.3 in choose packages to install dialog
- 8 packages appear with '?' in front of them
- i click (x)Accept all
- i click Install
- i pack a lunch as downloading proceeds :)
RESULT:
Done loading packages.
All Packages say "Installed" next to them
2.4 i close "Android SDK Manager" dialog
3. In response to anthony comment-2
"""You need also to:
- Java Compler->Building->Build path problems - set Incomplete build path: to
Warning
- And Project->Clean"""
3.1 I Right click on the PythonAPK project and select Build Path->Configure Build Path,
3.2 then [in left panel] under Java Compiler->Building i leave as is, previously checked by me, [x] Enable Project Specific Settings is checked.
3.3 Under Build Path Problems i leave as is, previously changed by me, "Incomplete build path" == Warning.
3.4 I click Apply then OK. [No Rebuild Project? dialogappears because the project settingswere not changed]
3.5 I click Project->clean->"Clean all projects selected below" [x]PythonAPK is checked.
3.6 I click Project->clean->"Clean all projects" [x]PythonAPK is checked but greyed.
RESULT for both cleans (3.5 & 3.6):
Problems: (Errors 100 of 765 Items)
[see attached file "allErrors.log"]
Thanks for the help.
Love and peace,
Joe
Original comment by JoeCodes...@gmail.com
on 29 Dec 2012 at 8:29
Attachments:
On original post, under "What steps will reproduce the problem?", Item 3 should
be:
3. Following Tutorial How to Use APK Template
Original comment by JoeCodes...@gmail.com
on 29 Dec 2012 at 8:33
Looks like android.jar is missing in your classpath
Original comment by anthony....@gmail.com
on 29 Dec 2012 at 9:07
Dear Anthony,
Thanks for the help. You said, "Looks like android.jar is missing in your
classpath". Here's what i did:
1. Opened adt-elcipse with C:\Documents and Settings\joe\workspace-adt-01 [This
is an empty workspace.]
2. In projectExplorer: r-clicked on
Android 4.0.3->android.jar (C:\adt-bundle-windows-x86\sdk\platforms\android-15\android.jar)
i chose Build Path->Configure Build Path
RESULT: up comes Properties for PythonAPK dialog
- message at top: Build path entry is missing: PythonAPK/gen
- in left panel: Java Build Path is selected
- on right:
- Libraries tab is selected
- Android 4.0.3 is highlighted and under it
- Access rules: No rules defined
- Native library location: (none)
- android.jar C:\adt-bundle-windows-x86\sdk\platforms\android-15
- Source attachment: (none)
- Javadoc location: http://developer.android.com/reference/
- Native library location: (none)
- Access rules: 1 rule defined
Forbidden: com/android/internal/**
Anthony, it looks to me like, pardon the pun, the jar is empty.
Do you have any ideas on how to fix it?
I'm going to go over to the Android site,
http://code.google.com/p/android/issues. I saw a different issue over there
(Issue 32577) that i had working with this ADT Bundle (without Python27) when i
searched for it.
Meanwhile, if you know how to fix this empty jar thing, please let me know.
Maybe it will help the Android folks as well.
Thanks for all the help, Anthony.
Love and peace,
Joe
Original comment by JoeCodes...@gmail.com
on 29 Dec 2012 at 11:56
Try to get android-4.0.3_r1.jar from
http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android
/android/4.0.3_r1/ , rename it to android.jar and use it in your project.
However seems smth is broken, you may want to go for a fresh Eclipse install,
and then add the SDK + ADT.
Original comment by anthony....@gmail.com
on 30 Dec 2012 at 12:17
Dear Anthony,
Thanks BIG TIME for all the help.
Before i read your comment #8, I made one more effort to add the jar to my
classpath.
1. Right click on the PythonAPK project and select Build Path->Configure Build
Path
2. Selected Libraries tab
3. Clicked "Add External Jars"
4. Navigated to C:\adt-bundle-windows-x86\sdk\platforms\android-15\
5. Selected android.jar
6. Did a rebuild
RESULT:
*** No Errors *** only Warnings
I'll try to get the _r1.jar from repository as you suggest.
Thanks for all the help, Anthony.
Love and peace,
Joe
Original comment by JoeCodes...@gmail.com
on 30 Dec 2012 at 12:32
Original issue reported on code.google.com by
JoeCodes...@gmail.com
on 29 Dec 2012 at 7:03Attachments: