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

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.

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top