Posts Tagged ‘eclipse’

Tips for Android developer: Project contains errors

I have met a problem when I used Eclipse to run as Android project today, it remained me that “Project contains errors” but nothing is obviously wrong.

I find a lot by Google, most of the answers can not solve my “Project contains errors” problem, except this one:

SOLVED – Eclipse problem with “Project contains errors” and nothing is obviously wrong

The solution is to go to Eclipse Project, Clean the selected project, and reompile the Android project. This will clear the error in the project and allow it to compile.

If you still face the problem after cleaning the android project, another way to solve the problem is delete the Android project from the Eclipse and re-import the Andorid project again. I can not guarantee that this method is feasible, but I’ve tried and it solved my “Project contains errors” problem.

Posted by Cute Android.

2 comments - What do you think?  Posted by CuteAndroid - May 25, 2010 at 4:02 pm

Categories: Android, Android developer   Tags: , , , ,

Tips for Android developer: An SDK Target must be specified

I have met a strange problem when I used Eclipse to create a new Android project today, it remained me “An SDK Target must be specified” and Android SDK targets selection list in “Build Target” window “disappeared”.

Searched by Google, most of answers for this “An SDK Target must be specified” problem showed that I should go to “Windows->Android SDK and AVD Manager” in Eclipse and click on “Installed Packages” and then “Update All”. But that’s not my problem, I have used the Eclipse to program with Android long ago and every thing is OK till today. So I continued to search and finally on the Rowan Crane’s Blog I found the resolved method, it is just to change the font size in Eclipse:

Window / Preferences / General / Appearance / Basic / Colours and Fonts

Change “Text Font” and “Dialog Font” to a smaller value, dropping from 10 to 8 or smaller number maybe helped.

The “An SDK Target must be specified” problem likes a joke Eclipse played with me.

2 comments - What do you think?  Posted by CuteAndroid - April 20, 2010 at 4:31 pm

Categories: Android, Android developer   Tags: , , , , ,

Tips for Android developer: failed to copy file to system

As android developer, if you use the following command like:

adb push file /system/..

and meet problems like “failed to copy file to /system/…”, such as:

failed to copy ‘file’ to ‘/system/…’: No space left on device
failed to copy ‘file’ to ‘/system/…’: Out of memory

The resolve method is not using the Eclipse or AVD Manager to start the Android emulator, but by use the command first:

$emulator –avd youravdname –partition-size 128

Then you can try the command “adb push file /system/…”, and the problem maybe resolved.

Be the first to comment - What do you think?  Posted by CuteAndroid - March 29, 2010 at 11:37 am

Categories: Android, Android developer   Tags: , , , , ,