The Berga The Berga - 5 months ago 14
Android Question

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.

Answer

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