upgraded to 1.5 and apps wont run

by Josh » Wed, 29 Apr 2009 12:08:02 GMT


Sponsored Links
 I upgraded to version 1.5 of the sdk and now when i try to run or
debugg apps i get the following error:


[2009-04-28 21:02:58 - Targets] ------------------------------
[2009-04-28 21:02:58 - Targets] Android Launch!
[2009-04-28 21:02:58 - Targets] adb is running normally.
[2009-04-28 21:02:58 - Targets] Could not find Targets.apk!


Im running eclipse 3.4 and i followed the directions listed here
 http://developer.android.com/sdk/1.5_r1/upgrading.html 

any suggestions?
--~--~---------~--~----~------------~-------~--~----~



upgraded to 1.5 and apps wont run

by Xavier Ducrohet » Wed, 29 Apr 2009 13:52:42 GMT


 Do you have a libs folder in your project?

Xav






-- 
Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


upgraded to 1.5 and apps wont run

by Josh Dobbs » Wed, 29 Apr 2009 22:33:25 GMT


 Yes I do have a libs folder in the project.






--~--~---------~--~----~------------~-------~--~----~



upgraded to 1.5 and apps wont run

by Xavier Ducrohet » Thu, 30 Apr 2009 02:24:16 GMT


 OK, we have identified a problem where files with no extension in this
folder make the build system break.
Even if you don't have files in there, the presence of a .svn folder
in there can cause the issues.

If you use that folder to store jar libraries. I would just move those
jar files to a different folder (the issue is only with the folder
named "libs" and the jar files can be anywhere as long as they are
added to the project build path).

We have fixed the problem and are looking at possibly releasing an
update to ADT soon.

Xav








-- 
Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.

--~--~---------~--~----~------------~-------~--~----~



upgraded to 1.5 and apps wont run

by fdimeglio » Thu, 30 Apr 2009 04:54:34 GMT


 Xavier,

Yes I confirm that if you are using subversion and having a "libs" dir
in which you have:

- your jar libraries
- the .svn dir

then the build just crap out with ADT 0.9: the resulting .apk contains
everything except the signature and if you "zip -T project.apk" you
will see that the apk file is considered as non valid.

This leads too to the EOCD error you see when trying to push the
broken apk file to an emulator or a device.

When can we expect a fix for this issue ?

Fabrice

PS:

btw I have seen other issues with ADT 0.9: the auto generated resource
file is not generated if you AndroidManifest file is containing <uses-
sdk minSdkVersion="2"> instead of  <uses-sdk
android:minSdkVersion="2">
This was working  with SDK1.1 but with SDK1.5 you need to use the
"android:" prefix






--~--~---------~--~----~------------~-------~--~----~



upgraded to 1.5 and apps wont run

by Xavier Ducrohet » Thu, 30 Apr 2009 05:08:36 GMT


 


hopefully sometimes next week. We're adding a few more fixes.


Yeah we've fixed that too. the minSdkVersion attribute must be in the
android namespace (we've fixed the docs for it too)

This has always been the case, it's just that ADT now parses this
value to display a warning in case this conflicts with the build
target. Unfortunately, if the <uses-sdk> node is present but the
attribute isn't, there's a bug which prevent the rest of the build
from happening.

thanks
Xav
-- 
Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.

--~--~---------~--~----~------------~-------~--~----~