adt error on project name but no other errors

satya - Friday, July 29, 2011 11:37:20 PM

symptom

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.

satya - Friday, July 29, 2011 11:38:16 PM

You say check the error page

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.

satya - Friday, July 29, 2011 11:38:54 PM

so what did I do

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.

satya - Friday, July 29, 2011 11:39:29 PM

debug certificate expired adt eclipse android

debug certificate expired adt eclipse android

Search for: debug certificate expired adt eclipse android

satya - Friday, July 29, 2011 11:43:34 PM

Here is a solution

Here is a solution

satya - Friday, July 29, 2011 11:48:59 PM

solution


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

satya - Sat May 26 2012 08:53:28 GMT-0400 (Eastern Daylight Time)

Re-installation failed due to different application signatures

Re-installation failed due to different application signatures

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

satya - Sat May 26 2012 08:55:51 GMT-0400 (Eastern Daylight Time)

Here is a reference to stackoverflow on this subject

Here is a reference to stackoverflow on this subject

satya - Sat May 26 2012 08:56:53 GMT-0400 (Eastern Daylight Time)

Possible suggested reasons


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

satya - Sat May 26 2012 09:07:32 GMT-0400 (Eastern Daylight Time)

Not sure what the reason is

I have used a different emulator and that seemed to work

satya - Thu Oct 18 2012 14:46:31 GMT-0400 (Eastern Daylight Time)

R.java is not there

R.java is not there

Search for: R.java is not there

satya - Thu Oct 18 2012 14:48:05 GMT-0400 (Eastern Daylight Time)

Here is an SOF link to read first

Here is an SOF link to read first

satya - Thu Oct 18 2012 14:50:31 GMT-0400 (Eastern Daylight Time)

Very interesting....

Very interesting....

satya - Thu Oct 18 2012 14:52:49 GMT-0400 (Eastern Daylight Time)

Here is what happened....Errors in 'res' sub directory will prevent from R.java being created

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.

satya - Thu Oct 18 2012 14:54:44 GMT-0400 (Eastern Daylight Time)

here is an example


<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!!!

satya - Thu Oct 18 2012 15:48:09 GMT-0400 (Eastern Daylight Time)

No I was wrong...here is the real scoop

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!!!