Question

I've downloaded the android source code for CallLog, Contacts, Dialing from here.

But now, when I try to import this package on Eclipse, imports like:

com.google, com.android.internal.Telephony, com.android.internal.R, com.google.android.collect, android.provider.ContactsContract.Intents.UI, android.provider.ContactsContract.SearchSnippetColumns, android.provider.ContactsContract.ProviderStatus, android.provider.ContactsContract.ContactCounts, android.content.IContentService, android.provider.ContactsContract.Intents.UI

And many other imports, show errors saying it cannot be resolved.

So my question is, why it shows this errors? Why I cant implement it without this errors? I use the Google APIs, I've created the project from an existing source code, but I dont know why this happens.

Was it helpful?

Solution

If you're sure that you have set up the Android SDK correctly, you should try to 'clean' your Eclipse project.

This usually solves import related errors in Eclipse for me.

OTHER TIPS

Try right clicking the solution / project in the project explorer and choose "fix" near the bottom.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top