开发者

could not import android classes

I have imported an existing android project into eclipse, the src code shows some errors saying

"The type java.lang.Class cann开发者_StackOverflowot be resolved. It is indirectly referenced from required .class files" and "the import android cannot be resolved"


Have you downloaded the Android sdk & used it to download the specific target-sdk that your project is built for? If you haven't then you should do this first.

After that you need to tell eclipse where your android-sdk is present. This document explains everything.

http://developer.android.com/sdk/installing.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜