Hello,
I am writing an example programme as I am learning to programme android apps for the first time. I have followed the instructions to the letter but I have some errors with the R files?
Here is my R.java file:
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.dummies.android.silentmodetoggle;
public final class R {
public static final class attr {
}
public static final class drawable {
public static final int icon=0x7f020000;
public static final int phone_on=0x7f020001;
public static final int phone_silent=0x7f020002;
}
public static final class id {
public static final int phone_icon=0x7f050000;
public static final int toggleButton=0x7f050001;
}
public static final class layout {
public static final int main=0x7f030000;
}
public static final class string {
public static final int app_name=0x7f040001;
public static final int hello=0x7f040000;
}
}
On the line hi lighted in red I have an error under the R. It says that "The type R is already defined".
I have lots of errors on my main activity coding too but they all relate to the R. Where should I begin in finding the fault? As the R.java file was derived I cannot understand where the fault can be coming from.
Thank you in advance for any help.
Paul
I am writing an example programme as I am learning to programme android apps for the first time. I have followed the instructions to the letter but I have some errors with the R files?
Here is my R.java file:
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.dummies.android.silentmodetoggle;
public final class R {
public static final class attr {
}
public static final class drawable {
public static final int icon=0x7f020000;
public static final int phone_on=0x7f020001;
public static final int phone_silent=0x7f020002;
}
public static final class id {
public static final int phone_icon=0x7f050000;
public static final int toggleButton=0x7f050001;
}
public static final class layout {
public static final int main=0x7f030000;
}
public static final class string {
public static final int app_name=0x7f040001;
public static final int hello=0x7f040000;
}
}
On the line hi lighted in red I have an error under the R. It says that "The type R is already defined".
I have lots of errors on my main activity coding too but they all relate to the R. Where should I begin in finding the fault? As the R.java file was derived I cannot understand where the fault can be coming from.
Thank you in advance for any help.
Paul