When adding video in raw folder shows error in android studio - android-studio

I am new to the android studio, when I add a video in the raw folder it shows an error like "file was loaded in wrong encoding utf-8. I don't know how to remove this error. Please help.

It must be in a supported format (3gp, wmv, mp4 ).

Related

How to save dart file in file system with android studio generated comments?

I like how Android Studio and Visual Studio , generate the comments for each closing brackets, but when I open the same file in notepad++ or any other text editor, I don't see those comments. Is there a way to generate the saved dart file so it has those comments stored as part of the text code( in comment) ?
Here is one code example that how code looks in android studio.
but when opened with notepad it does not have the comment MaterialApp. I am guessing there is some settings in android studio that will let me save file with generated comments, so it can be useful outside of Android studio like in git etc.
These comments are generated "on the fly" by the Flutter plugin for Android Studio. At no time, these comments are inserted into your source files. They are just shown within the IDE. So I think there is no way to "export" these comments.

Error in Android Studio while creating new project auto generated XML files

This an example for an XML file in my Android's project
every time i build a new android studio , it builds wrong generated XML files
and i have tried many solutions like Re-build - Clean Project - even Invalidate and Restart
can someone help me to solve this one .. Thank You
okay i got your question & here i have solution i hope it will work
first thing is try to find that SDK is missing or not ?
second thing try to fix environment variables is set & working or not ?
then rename this files
goto C:/users/Admin/.AndroidStudio3.2/system/
Rename is file caches to caches.bak & restrat the studio

Android Studio : triple selection of png files

In my new project on android studio I need to insert three .png files .. I pasted the images into the "drawable" folder. I have been careful to name them correctly to avoid possible mistakes caused by special characters in the name...
The problem is that when I start the app, only when my three png files are present in the layout throught ImageView, appear an error saying that "files are crunching". I think that the problem is in "how" I selected the three images by the desktop : Before I paste them into drawable I have selected them all at one time, so I think that the problem can be caused by this triple selection. The mistake can be this?
Please check this link, https://stackoverflow.com/a/43458892/7973751. And make sure to clear cache and rebuild, please.
OR, it can be happened because the file path length is too long. Please check this link. https://stackoverflow.com/a/42644364/7973751.

On runtime, why is Android taking XML file from layout instead of layout-large for large Emulators?

I have an XML, sign.xml in layout and layout-large. When I run the corresponding activity on large screen emulator WVGA ,I am getting the XML from layout-large and not from layout.
Can anyone please help?
Read this carefully, you'll get every knowledge regarding your this question.

error RC2176 : old DIB in res\icon3.ico; pass it through SDKPAINT?

what is this Error, and how to resolve it?
I am using Visual studio 2005 for Smart device MFC developement,
Is upgrading to 2008 can solve my problem.
Error 85 error RC2176 : old DIB in res\icon3.ico; pass it through SDKPAINT
Thanks
this might help you:
http://www.axialis.com/tutorials/vistaicons.html
It looks like vista icons now use PNG headers. The error is slightly false though as its not an old DIB its just a header it doesn't recognize, PNG.
How was that icon created? Long ago Visual C++ 6.0 had its own little way of creating icon .ico files. Probably not using PNG so this might be the way to go is to find some program to emulate that and create an icon using the old DIB way. Or upgrading to 2008 :)
Actually there is another way not mentioned here in the other answers.
If you would install and integrate a more recent (same or later release date than VS 2008) SDK with VS 2005, that also resolves it. You can also go to C:\Program Files\Microsoft Visual Studio 8\VC\bin (or your equivalent of the path) and replace the files rcdll.dll and rc.exe with the ones from a more recent VS, WDK or SDK.
Side-note: the version of rcdll.dll and rc.exe must match, that is you need to copy both at once from your source (be it VS, WDK or SDK). For me any version starting with 6.0 or 6.1 worked. That's any version starting from the compilers that accompanied the Vista SDKs and VS versions or later.
There are actually 2 situations I've encountered that lead to this error RC2176.
As you probably know, a Windows .ICO file can contain multiple images for different sizes and color depth. VS2005 throws this error in at least two situations (unrelated to DIB)
.PNG images in the icon (as described in Codejoy's answer)
256x256 or larger images in the icon
By using GIMP to shrink the largest image size to 128x128, and avoiding .PNG, the problem is resolved with VS2005. Or, upgrade to a newer VS ;)
I had this problem in VS2012 for which I googled but didn't find anything else but this link to a MSDN site which talked about opening it up with sdk-paint , so in my project I doubleclicked the icon that was responsible for the error and deleted the PNG format and voila program started.
Greetz
Richard
The compressed/packed 256x256 was the problem for me. Once I unchecked the option to save as compressed (for Vista) in my icon editor app, the problem went away.
There is another situation I encountered which triggered the error, that is a corrupted PNG file. I've used the sed command to globally replace some strings in the project folder, and it just replaced the (looks liked) windows line ending to UNIX one, which caused my image files corrupted.
So, maybe there are some bugs in the PNG parser of MFC library, which cannot handle malformed input files.
Best resolution I have come across is from Axialis where they offer guidance of saving the ICO file in uncompressed PNG format.
https://www.axialis.com/docs/iw/How_to_use_a_Windows_Vista_Compressed_Icon_in_a_Software_Project.htm

Resources