Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit error on AndroidManifest.xml in Android Studio

My AndroidManifest.xml has an error:

<activity
    android:name="bla.bla.Activity"
    android:label="@string/title_activity_" >
</activity>

That activity doesn't exist anymore nor the string. Since I can't edit the AndroidManifest.xml and it would regenerate that code again, how can I fix this?

PS: Already tried cleaning the project a few times. Using Windows.

like image 442
The Berga Avatar asked Mar 27 '26 19:03

The Berga


1 Answers

Since I can't edit the AndroidManifest.xml and it would regenerate that code again, how can I fix this?

It very much sounds like you are editing the generated Manifest in the gen/ folder instead.
If you make the changes to the 'regular' Manifest, it should work.

If you use the default Android Studio project structure, the one you need to open is

enter image description here

like image 159
Tim Avatar answered Mar 29 '26 07:03

Tim