Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After upgrading to Android Developer Tools version 22, compiling fails

Tags:

android

adt

Today, I upgraded ADT to version 22. After that, my projet wouldn't compile resources at all. My "gen" folder was empty and as such all my java files that require "R" wouldn't compile.

like image 976
GenesisST Avatar asked May 16 '13 02:05

GenesisST


3 Answers

After a few non-full time hours, I restarted the "Android SDK Manager" and this time, I noticed these: - "Android SDK Platform Tools" (upgrade) - "Android SDK built-tools" (new)

After installing those, I was finally able to fully compile my project.

like image 87
GenesisST Avatar answered Nov 15 '22 11:11

GenesisST


ADT22 use Android Private Libraries show project/libs'jar, add Exported feature, if you wannt reference library projects' private libraries, you must check the Exported

https://plus.google.com/photos/117122118961369445953/albums/5878509263473846433/5878509268379848162?authkey=CL3Frb-S_qj-fQ

like image 11
Crossle Song Avatar answered Nov 15 '22 10:11

Crossle Song


If you are using some libraries or/and dependencies with other projects, you may also experience errors at execution time. In my case I had problems with Sherlock "Unable to execute dex: Multiple dex files define Lcom/actionbarsherlock/R$attr" and with some other jar file I am using "VFY: unable to find class referenced in signature" In that case, you must go to project properties, Java Build Path section, and remove Android Dependencies and Android Private Libraries, both in the main project and also in the dependent projects like for example Sherlock. After that you perform Clean on all projects. Everything should be restored. That worked for me, after a hard battle!

like image 3
Jose Luis Pintado Avatar answered Nov 15 '22 10:11

Jose Luis Pintado