0

My android manifest file was deleted, I have been looking around and have not found how solution on stack overflow, does anyone have a suggestion?

Thanks for your help!

Muntasir
  • 798
  • 1
  • 14
  • 24
Lontronix
  • 193
  • 2
  • 15
  • Is R only not found for `one_button_ET` or are there others? Also why do some `findViewById` have double ()? – Troy Poulter May 19 '17 at 00:11
  • Possible duplicate of [Cannot read packageName from AndroidManifest.xml](http://stackoverflow.com/questions/32447683/cannot-read-packagename-from-androidmanifest-xml) – Mortada Jafar May 19 '17 at 00:11
  • And maybe you wanna look this http://stackoverflow.com/questions/18871959/findviewbyid-error-cant-find-id-in-xml – thinkerer May 19 '17 at 00:12
  • @Trozza all of the ImageButtons in the code I attached are affected, the double parenthesis were from autofill, they don't seem to be causing this. – Lontronix May 19 '17 at 00:13
  • @B.Kaan this dosen't work because of the android manifest error I mentioned – Lontronix May 19 '17 at 00:16
  • @MortaddaJafar it looks like my android manifest was deleted, where/ how do I create a new one? – Lontronix May 19 '17 at 00:23
  • Can you not just create a new one using a text editor and place it in your `app->src->main` folder, then clean and rebuild? That should work... – DigitalNinja May 19 '17 at 00:42
  • @DigitalNinja what needs to be in the manifest file? – Lontronix May 19 '17 at 00:43
  • @Lontronix That strictly depends on your app... https://developer.android.com/guide/topics/manifest/manifest-intro.html – DigitalNinja May 19 '17 at 00:44
  • Suppose If you have .apk file then decompile that file from this site http://www.javadecompilers.com/ and find that manifest file from the source. – Vishal Senjaliya May 19 '17 at 04:49
  • Try this , you might recover your Manifest file , http://stackoverflow.com/questions/23198486/recovery-the-deleted-xml-file-from-app-in-android – schinj May 19 '17 at 06:06

1 Answers1

1

You can revert your action back by following 3 simple steps in Android Studio :
1) Click on VCS menu first VCS


2) Than click on Local History option. enter image description here
3) Search for your deleting manifest file action and revert it back.For example:
Click revert

Amit Sharma
  • 645
  • 5
  • 13