2013-01-09 5 views
1

génération R.java mais mises en page et les chaînes dans le fichier JAVA montrant toujours problème suivantne peut pas être résolu erreur

console ....

button_scan cannot be resolved or is not a field DeviceListScan.java 

device_list cannot be resolved or is not a field DeviceListScan.java 
etc.... 

ci-dessous est R.java fichier tout est généré en mais ont encore problème, qui est pour toutes les chaînes et la mise en page im y accéder dit ne peut pas être résolu ou non un feild ....

fichier r.java

package com.android.settings.bluetooth; 

public final class R { 
    public static final class attr { 
} 
public static final class drawable { 
    public static final int ic_launcher=0x7f020000; 
} 
public static final class id { 
    public static final int button_scan=0x7f060006; 
    public static final int new_devices=0x7f060005; 
    public static final int paired_devices=0x7f060003; 
    public static final int title_left_text=0x7f060000; 
    public static final int title_new_devices=0x7f060004; 
    public static final int title_paired_devices=0x7f060002; 
    public static final int title_right_text=0x7f060001; 
} 
public static final class layout { 
    public static final int custom_title=0x7f030000; 
    public static final int device_list=0x7f030001; 
    public static final int device_name=0x7f030002; 
} 
public static final class string { 
    public static final int app_name=0x7f040000; 
    public static final int bt_not_enabled_leaving=0x7f040003; 
    public static final int button_scan=0x7f04000d; 
    public static final int discoverable=0x7f040010; 
    public static final int insecure_connect=0x7f04000f; 
    public static final int none_found=0x7f04000a; 
    public static final int none_paired=0x7f040009; 
    public static final int not_connected=0x7f040002; 
    /** DeviceListActivity 
    */ 
    public static final int scanning=0x7f040007; 
    /** Options Menu 
    */ 
    public static final int secure_connect=0x7f04000e; 
    public static final int select_device=0x7f040008; 
    /** BluetoothChat 
    */ 
    public static final int send=0x7f040001; 
    public static final int title_connected_to=0x7f040005; 
    public static final int title_connecting=0x7f040004; 
    public static final int title_not_connected=0x7f040006; 
    public static final int title_other_devices=0x7f04000c; 
    public static final int title_paired_devices=0x7f04000b; 
} 
public static final class style { 
    /** 
    Base application theme, dependent on API level. This theme is replaced 
    by AppBaseTheme from res/values-vXX/styles.xml on newer devices. 


     Theme customizations available in newer API levels can go in 
     res/values-vXX/styles.xml, while customizations related to 
     backward-compatibility can go here. 

    */ 
    public static final int AppBaseTheme=0x7f050000; 
    /** Application theme. 
    All customizations that are NOT specific to a particular API-level can go here. 
     */ 
     public static final int AppTheme=0x7f050001; 
    } 
} 
+0

vérifier http://stackoverflow.com/a/3259974/1434631 – Nermeen

Répondre

1

Essayez de nouveau Project>Clean votre projet & Project>Build nouveau.

Et assurez-vous également que vous n'avez pas importé import android.R; dans votre activité.

+0

ya problème était dû à 'importer android.R' ... merci – Kiran

2

Essayez le projet -> nettoyer ...

Si cela ne fonctionne pas, votre fichier XML peut ne pas afficher d'erreur. Eclipse est bizarre parfois.

Vérifiez également que vous n'avez PAS importé android.R.

+0

ya problème était dû à l'importation android.R ... merci u – Kiran