adt error on project name but no other errors

I have the android workspace for a while. I have over 30 projects. I have tried to create a brand new project yesterday. There are no errors on any individual files. However there is an error on the project name.

I have over 3000 errors in there due to other projects. I just couldn't delete all of them. Even if I do they get regenerated. May be there is a way to turn off auto build and just build the single project.

I have removed the single project that is causing the 3000 or so errors. That reduced the errors to 20 or so and I can see in the error tab what is going on.

debug certificate expired adt eclipse android

Search for: debug certificate expired adt eclipse android

Here is a solution


delete /users/your-user-name/.android/debug.keystore
clean project

Re-installation failed due to different application signatures

Search for: Re-installation failed due to different application signatures

Here is a reference to stackoverflow on this subject


a different keystore from the original
wiping user data on the emulator
Just a plain uninstall

I have used a different emulator and that seemed to work

R.java is not there

Search for: R.java is not there

Here is an SOF link to read first

Very interesting....

First of all make sure there are no errors in the resource sub directory. This will prevent from R.java being generated. In my case I have an error in the namespace declaration of custom attributes. Once I fix that it worked.


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:apptemplate="http://schemas.android.com/apk/res/com.androidbook.custom"    
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >

Although it is just a name space it seem to care what that path is to match your package name!!!

The namespace shouldn't matter and in a way it doesn't but it does!! Here is why. Take a look at the following


<com.androidbook.custom.MyTextView
   android:id="@+id/custom_text_id"
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="Debut Text Appears here"
    apptemplate:custom_text="Custom Hello"
    />

and see the argument "custom_text". The id value for custom_text is required to generate the R.java. By looking at "custom_text" there is no way to know if that came from the current package or a different package!!!

So the tooling relies on what is after "/apk/..." to locate the id definitions for that variable. So it should then represent your package!!!