Hossein Dibapour
Hossein Dibapour

Reputation: 45

Error when creating android project in eclipse

I'm new in Android Developer and i learning. But when i create a new project, this error shown.

enter image description here

and in the error log i have so much error, and i don't know how can i export all of them here. And In the project explorer, my project shown like this:

enter image description here

I don"t know how can i fix all of this error! Thanks for helping and sorry for my bad english!

UPDATE:

My problem is solved. The problem is from my appcompat-v7 project. My friends give me another link of this project and then try it again, and the problem is solved! And tnx to all of you for your answers. :)

Upvotes: 3

Views: 245

Answers (4)

ʍѳђઽ૯ท
ʍѳђઽ૯ท

Reputation: 16976

Offline Method :

1.

or maybe you need Offline added this package.Download with Below Link :

http://downloads.puresoftware.org/files/android/extras/support.zip

extract this in SDK-root Folder/extras/android something like that in Windows : ( for me )

C:\Program Files (x86)\Android\android-sdk\extras\android

well, goto Eclipse and add this in your project by below method :

Right Click on your project Properties > Android, after Restart, it worked fine.

2. also, you can Copy this Folder (appcompat) ;

//you can find it with this Address :

C:\Program Files (x86)\Android\android-sdk\extras\android\support\v7\appcompat

or after Added above Download link, now ; copy this Folder (appcompat) to Workspace and added with Properties > Android to your project.

Upvotes: 0

user4387624
user4387624

Reputation:

Following are the steps:

  1. Paste the android-support-v7-appcompat.jar that you have downloaded in libs folder of your project.
  2. Right click on your project, select Build Path -> Configure build path.
  3. Select Library Tab then Add Jar option and browse your recently added v7 jar and click OK

enter image description here

that's it :)

Update :

enter image description here

see here

enter image description here

Upvotes: 3

Mohammad Arman
Mohammad Arman

Reputation: 7065

Right Click on the HDArtworks project.

Go to Properties>>Android Then in the Library section: If you find a red cross in AppCompat_v7 then Select and remove it.

Then click ok. Now come back to the Solution explorer and select the Appcompat_v7 project. and do the clean and build.

When the appcompat_v7 project error free then again Right Click on the HDArtworks project. Go to Properties>>Android Then in the Library section: If you find a red cross in AppCompat_v7 then Select and remove it. and click Add select AppCompat_v7 and click OK.

Now Clean and Build the HDArtwork project. It should solve the problem

Upvotes: 0

nullPointerException
nullPointerException

Reputation: 38

There seems to be a problem with your external library.

  • Go to project properties by right clicking on project.
  • Select android from left menu.
  • check for the appcompat library in bottom window.

If it is not there, add it from a valid path. Clean the project and run it again.

Upvotes: 0

Related Questions