简体   繁体   中英

How do I link android library (as Angle) to my Eclipse project?

Nooby question, I guess, but. I downloaded free android engine called Angle from here . There is a source and an example. I imported this project to Eclipse and now getting errors:

Project 'ANGLE' is missing required source folder: 'gen'    

and there was no such directory in package, so, I guess, I need to create it? In my helloWorld created without any libraries I have R.java in this folder (gen/com/companyName/appName/R.java).

Also, there was another error - project was for "android-3", and I have sdk beginning with 2.2 (android-8). So I changed target to android 2.2 and got an error

Android requires compiler compliance level 5.0 or 6.0.
Found '1.7' instead. Please use Android Tools > Fix Project Properties.

So, what are "android tools"? Never seen this option.

Thanks for any help. New to Eclipse, new to Android, so need some advices.

用鼠标右键单击您的项目,您将在上下文菜单中看到“ Android工具”。

Right click on your project and select Android Tools > Fix Project Properties If it's does'nt work, Right click on your project => properties and select an android sdk version. Clean the project and rebuild.

To convert the project to Library project, Right click => properties => Android => Is Library => OK

Right click on project => Android Tools

also try to change compliler to 1.7

to connect library project : right click=> android => Add and choose library project

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM