开发者

Having routine problem debugging other people's android source code in eclipse - ADT plug-in might not be functioning properly

开发者 https://www.devze.com 2023-01-05 06:15 出处:网络
This might be a pretty basic question, or peculiar to my set up (hopefully not too peculiar) I am new to android development and have been playing around with the tutorials offered at developer.andro

This might be a pretty basic question, or peculiar to my set up (hopefully not too peculiar)

I am new to android development and have been playing around with the tutorials offered at developer.android.com.

I don't have a problem with projects I create from scratch, but when I start a project from the android sample code provided at android.com or from any other android project, I can never seem to get the bugs out to even run the thing.

For example, when loading up the NotePad sample in the android-7 package of samples -

from the error log I see:

Failed to load properties file com.android.ide.eclipse.adt Pr开发者_如何转开发oblems occurred when invoking code from plug-in: "org.eclipse.jface".

from the problems log I get:

error_message cannot be resolved or is not a field menu_delete cannot be resolved or is not a field

menu_discard cannot be resolved or is not a field text_edit cannot be resolved or is not a field

etc., didn't want to list them all

It seems that it is not playing well with the strings.xml file in res/values

Have tried: 1. Importing anything missing w/ cmd,shft,O 2. Fixing properties from Android Tools 3. Project>>Clean... 4. Making sure that the SDK Versions all match up 5. Restarting and restarting

Nothing, still getting the error.

Anyone have any ideas what I am doing wrong?

would like a general solution, something more global bc this is occurring whenever I pull in anyone's source code from outside.

kind of frustrated because I feel that I am spending too much time working out these kinks and not being able to study other people's code against how it performs in the emulator.


I had similar issues and were related to the SDK version I was choosing when importing the samples. You have to pick the same version used to create the project. I believe it's 1.5


Rookie mistakes - was looking at the wrong numbers to determine what version to attach to an imported project.


Sometimes, you can also try a right-click on your project, then Android, then "fix project properties".

Hope I have helped.

0

精彩评论

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