简体   繁体   中英

how to setup wordpress android project

I am a newbie to Android development. I am having trouble building a project.

Revision 836, Oct 8 2012 Eclipse classic : Version: 4.2.0 Build id: I20120608-1400

Android SDK: 4.1.2 API 16

After I imported the Wordpress Android project. I got lots of errors.

see here: errors screenshot

I set:

default.properties

target=android-16

AndroidManifest.xml

<uses-sdk
android:minSdkVersion=”8”
android:targetSdkVersion=”16” />

It doesn't work.

The error is caused by override, so I guess it didn't find the right lib and class.

How do I setup the project?

Please provide us with the error output. check if the "Android SDK" installation path is correctly configured in eclipse, you can check this going to "Window" > "Preferences" > "Android"

Check your Java Compiler Compliance level, Eclipse defaults this to 1.5, which can only Override superclass methods (which is what your error log shows is the problem). If your project Overrides interface methods then you will need to change this to 1.6.

You can change this by:

Project>Properties>Java Compiler

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