Android Manifest: Unexpected Tokens - android-studio

I opened my app to start developing on it today, and when I loaded it, it wasn't able to be run because of an issue in the manifest file. Taking a look inside the manifest file, i get this:
PK A META-INF/ PK A (M��? T META-INF/MANIFEST.MF�M��LK-.�
K-*��ϳR0�3����-�I�M�+I,
�d��Z)�%��b�µ���r�r PK A org/ PK A org/gradle/ PK A org/gradle/wrapper/ PK A �zZ�� � - org/gradle/wrapper/BootstrapMainStarter.class�VYw�V�˖#DgH!��bSJiIh
� �#c5�žv���2$����ڗ����Sz���?B;W�op��s�ٿ�;#����g ^�O2Bx[�a�KX�pA� .�X�%���˒�e\�U���
����&Ẅ)�X�pCƻ�H���X�p+�����|y�/w�Pe�#+!�Ǽ�C(H�8��='���
�f� �Ni[.יuM]׉J�YU_U-��kD���Jb)�*$
���Y⁥nn2+q�4�M�%U3Ҷj�̚�/񣀣ѵ�]����U��Hۖff]�f&4��:�V�<�� �./�E���QY#�˽�Z}�4l�e'u�TJ�j�1�j�N\_Iձ�r��vHz�|;$�󗘽a�� X,����py$9ؘ��M/y��f�L�q��[Y�ik�Q��Q)�K�e#��,�p�)O��ż�TG���d`���3�¢��r�,[Y��h��.�-(8�Q3 �^�:J=G�]ܓ�+(`*��
,���q_�l0zFq�jq��8~���Xl�C����`5eO�G�X#�.���]���O|�Ϩ�^��Yb�
>Ǩr-?� �����B���J�C|M�ݸ������(+��o|����z^)�Vd;�0�4�z.b�vD��`����".��g3r��JD3<rN�2h�en!2>V�+�?��~0�?{��g7�����y}�^#O4V����%\�I�Z$S$9�T�����.٬��q��f
�]�}U��A�!�
������+��
��ԏ{�e����
n]*���d��0}��N�ε�0m�J- kмYq���Z�N�ee��x4�5�y����z7n#4���b�$�w����Ѧ9���z���'e4�2l$��� �X��)��L#��jSC�Łv)�I#�EBM#��
��m���g�0}����y��[�v�v�D�c:t`�րC܏c�*� ���2&H�+?'9����T�O�ˈ#���+�WH?�TA���� �X���R*�;��C]$ݝ���']A�L ���&��w#,���G\�7x�ϣ;�NZ���r���?�a\�V�mˈã��FX���&1� �cqB�JC�l�"���[F$k'��UB�m��k$u����:�� �H��d�� ��V�c���O1���bᥩgs�S�x�g�L
�'x*
I assume that this is some sort of encoding file issue, I've tried reverting back to previous versions of my project from days ago when it was working and it only shows the encoded version of my manifest file. Is there any way I can turn this back into my correct manifest file?
I am using the newest version of android studio.
Any help is appreciated,
thanks

Related

unable to find main.dart and lib folder from imported flutter project

hi there!
i backed up my flutter project folder due to some issues with my drive,
i fixed the issues
only for me to try importing the project and continuing my work
and it turns out i can't find my main.dart file along with my entire lib folder
the only recognizable thing left in the project seems to be the assets folder
help me, please
this has really pushed me way behind schedule
also I would be much grateful if i could get an app that decompiles flutter apks
as my code is still in debug mode and i have the apk file.
thanks
enter image description here
To get source code of your apk file(debug) :-
Step 1- download strings for Windows (in your case)
https://learn.microsoft.com/en-us/sysinternals/downloads/strings
Step 2-
Since kernel_blob.bin has all your app's source code,
Run this command,
strings /path/to/extracted/apk/assets/flutter_assets/kernel_blob.bin > extracted_code.dart
Here, replace, "path to extracted" to your own path.
Step 3
You’ll need to clean the extract_code file, and strings like “dart”, “import”, “void” and other keywords in ‘extracted_code.dart’, will help you find the code itself.(search for them to get your code)

Unexpected automatic change in webview.xml

I am creating an Android app with webview, yesterday I closed the project at night and it was working fine but today when I opened the project it showing some encoded text in activity_webview.xml and the project is not building.
Below is the encoded text:
�PNG
IHDR ` ` �w8 �IDATx��] XSWھ* �#d a�Mك# �U#E�]��
�UD��Z�⾕nڊuG��j��t���v����Ng����3�3%���wr"�-� ��>�g0�s��=��-�������� fS]=�ZG֤AM�:� ?�� Q���� D���?;�G�/����L�f+f�&G��ĝ�-���?�s�;|�`�(ρ���?�3�?����;����*��������[��}��P�;�����������}bܼ���-'�6m��1p,S����a��!�����x샻�6ںl�&�&8����P���#6��c��t�8������쁴���ն[���ρ�z|"tLuu��g�x��Xbbа-à�����o
v��A��ʔ&sn��#:��3e׶�?k�~�|��rwMO���=��J��8����9���ԉ���,��>��֭|��[�'a�z5���Mƚ�X/>7c�f�þ�jfk׃���׬v�ڸ���y׬��k�0޸�:���?��}�� �H�rm�0��90����s#8�`�t�}`�3$r���^Ka*L���0�;{nX���!�{�"�����`W�k&.�d1�I�~o������ܥO+���gx&u^
x�ps����F��~�2����ҫ|N�|88���. l%`)L��t0�� ��`���#���[//qiO�DF�/]��7b;x�U���xvf�P(�W����C�j ����P��gJH���YI�;Rgx�|0�Z <�� O >�Q}D��4qi��S ��?�0Q���>���}�����
������x�TA�g�YT���f��L�DNP���Q�RkUl��Z����%�~�>�u^#`7G�sɌ���FS�ĥ_�&-M��Yǝ�M߮>��k�����(p����s�`� �q�`�C�(䚈^�
ISɒJ�������
Щњ���0�"|�X���*��%.5o0M\rZ��=m����=̄�z�Et^W��9����ov�R�L �ȡ4al�F�ARt�<6������w
���B�U�z�$ǟd#A�Djb�
�����Ì8��&,��#ش�B�C��,��� J�q��p-9�Y��>�j�6�?NDX�38�
L��5���- �#��W9�ȍs���f�����8�E\0�/��(�1Ȏ&�X!'��
And yes, I don't totally remember about the contents of this file. Please help.
Error log from Logcat
Rather than discussing on unexpected change, may this solution work for you.
Right click on your activity_webview.xml and select show history from Local History.
Here you would find the previous versions of your file and I am sure you would find the clean copy of your code here.

drools could not open decision table from XLS file

I could create a fresh spring boot project and successfully run all rules getting from an excel file by following this: http://www.baeldung.com/drools-excel
however If I just add same maven dependencies in my existing spring boot project, I can only use rules in CSV format. if I use .xls, I get error org.apache.poi.poifs.filesystem.NotOLE2FileException: Invalid header signature; read 0xE011BDBFEFBDBFEF, expected 0xE11AB1A1E011CFD0 - Your file appears not to be a valid OLE2 document
Not sure what am I missing here but I have tried a lot from past 8 hours but no luck
Can anybody suggest please?
I could resolve this after I accidentally tried to open rules excel file on target folder. It was corrupt. It was a maven setup issue. I had to waste a day on this crap issue. this post: Excel file corrupt when copied from src to target in Eclipse IDE
helped me to resolve my issue

Android Studio 2.3.2 Gradle Error

I am new to Android Studio, and everything was going fine until I received a nonsense error:
"Error:Execution failed for task ':app:processDebugResources'. > Duplicate symbol in table with resource type 'id' and symbol name 'title_conctact'"
I have no idea what it means and I have tried to fix it for two days. I tried uninstalling Android Studio which deleted all my progress, but still, the error remained. Please help, this is annoying. By the way, I am using the latest version 2.3.2.
hi after finding so much on web i don't get any solution so i tried myself to debug it and i got success to fix this issue you need to find the name in files in your case the name is title_conctact so you will get duplicate id's, now you need to rename and make them unique
that's it your problem will be fixed
I had the same issue. The issue I had was due to the keys declared differently in one of my module's resource file and my app's resource file.
In the module's strings.xml file, if you declare the key as 'title.conctact' and in the app's strings.xml file if you declare it as 'title_conctact', then you will face this error.
Changing it to a single format resolved my issue.
Double-clicking SHIFT will open a window. Put the title_conctact inside the search and you will find the .xml file that contains the duplicate id

Windows Store TriageDump.dmp without debug information

Greetings people,
My Windows Store game has been released for more than three weeks now, and I started getting crash reports. I could download the TriageDump.dmp file and have it opened in Visual Studio 2012, but it did not help much, I am constantly getting "No Debugging Information" error message when I click on "Debug with Native Only":
Also, the tool-tip on my Dashboard shows no information of the crashing function (could "Unknown" here mean inlined function or lambda expressions in concurrent::task?):
I would like to believe that I have done everything the way it should be done, of course I may be wrong. Here are some additional information that might be helpful in finding the issue:
It uses DirectX and written purely in C++ (without C# or XAML)
Project setting: C++\General\Debug Information Format = Program Database (/Zi)
Project setting: Linker\Debugging\Generate Debug Info = Yes (/DEBUG)
The game is made up of two native modules: Labyrinth.App.exe and Labyrinth.Core.dll
The generated APPXUPLOAD contains both APPX and APPXSYM files
The APPXSYM file contains both Labyrinth.App.pdb and Labyrinth.Core.pdb
I'm on x64 development machine, and the triagedump.dmp is for x86
I did click on "Include public symbol files, if any, to enable crash analysis for the app" when generating APPXUPLOAD file:
Please let me know if you spotted the issue or suspected something that's wrong above. Thanks in advance for your help, guys! :)
The very same problem here. MS had that working in the past though.
Actually if you still have the .appxsym around you can easily extract the .pdb out of that. The appxsym is just a .zip file it seems.
You can load these pdbs then as symbols after loading the triagedump.dmp.

Resources