1

I am having difficulties importing 'The lynda.com android app development with java essential training' exercise files into eclipse.

I keep getting some java errors like this.

Paste error here please.

Can someone help me out with this problem? Currently I am using

  1. "Android SDK r22.0.1"
  2. "ADT 22 plugin for eclipse"
  3. "JDK 6x64"
  4. "JRE 6x64"
  5. "Eclipse IDE for Java Developers 4.2 juno"
7
  • Kindly post the error Commented Jul 15, 2013 at 11:22
  • what error post something related error? Commented Jul 15, 2013 at 11:23
  • i have no reputation so i cant even post the snapshot of error Commented Jul 15, 2013 at 11:26
  • You can just add a link of a screenshot, upload it to imgur or something. Or just type it. Commented Jul 15, 2013 at 11:27
  • Description Resource Path Location Type The declared package "com.leebrimelow.intents" does not match the expected package "gen.com.leebrimelow.intents" R.java /Explicit_Intents/gen/com/leebrimelow/intents line 8 Java Problem R cannot be resolved to a variable Main.java /Explicit_Intents/src/com/leebrimelow/explicit_intents line 22 Java Problem The import com.leebrimelow cannot be resolved Main.java /Explicit_Intents/src/com/leebrimelow/explicit_intents line 3 Java Problem The declared package "com.leebrimelow.explicit_intents" does not match the expected package "src.com.l Commented Jul 15, 2013 at 11:30

2 Answers 2

1

Then It might be because, there may be some problem in your res folder,

 1.The Main reason might be there could be wrong import file of R.java. 
     So Remove, if any import android.R;
    2. There be some errors in your xml files
    3.Try rebuilding and cleaning your project or
    4. Close all files, clean project, restart Eclipse.
Sign up to request clarification or add additional context in comments.

1 Comment

there named a file R.java but the problem is with package containing other java programs
1

In the project right click Android Tools -> Fix Project Properties

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.