Whenever I clean adt project it creates a bundles of error of R.layout and some others

StackOverflow https://stackoverflow.com/questions/23647216

  •  22-07-2023
  •  | 
  •  

Domanda

I hae recently started android app development and have to face a problem. I've developed a small app to increase or decrease a label's value by 1 each. It was successfully developed and was working but after I edit the app_name(sting) value from "strings.xml" but it generated the error than I select clean option from project menu but number of errors increase instead of decrease.

Please guide me about this issue guidance would be appreciated.

È stato utile?

Soluzione

you R.java file will be automatically deleted on cleaning the project if any xml file in the project having error so first correct your errors in strings.xml file then clean the project . you must have changed.

<string name="app_name">your app name</string>

app_name here . if you have done so then again make it as it was or go in manifest file

<application>
...
android:label="@string/app_name"
</application>

also change here the name what you given in strings.xml file. hope you understands ...

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top