App launcher icon issue while building the app - flutter

> A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
> Android resource compilation failed
ERROR:AAPT: C:\Users\Prejith T S\Documents\projects\ATTENDANCE\TASKT7\wtiattendance\android\app\src\main\res\mipmap-mdpi\ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.
C:\Users\Prejith T S\Documents\projects\ATTENDANCE\TASKT7\wtiattendance\android\app\src\main\res\mipmap-mdpi\ic_launcher.png: error: file failed to compile.
i want to build an apk for my client but now it is not possible

It's likely a JPG renamed to a PNG file, not an actual PNG file
The problem could be because of the wrong extension of images.
The file was a JPE image but it was saved as PNG not converted to. In this situation change extension to the real one and convert to PNG then retry.
For instance, you have ic_launcher.png but it's actually a JPG image.
You should rename it back to ic_launcher.jpg and use something like Photoshop, or online convert tools to convert the image to PNG format.

Related

Github invalid file error in uploading google colab file

I'm trying to upload a Google Colab notebook to GitHub, but I keep getting the error:
Invalid notebook
missing attachment.
I went back and deleted the line for that png but still after resaving the notebook and trying to upload it again it says the same thing just for another png.
Is there a way to fix this without deleting every png in my notebook?
Check first, as in here, if you have a a link to an invalid png in another markdown cell.
In other words, the png might not be the issue (no need to delete it).
But an invalid reference to a png with the same name might trigger the error.

Pandoc: 'The picture can't be displayed' error shown for some images in .docx file after converting from .md

I'm trying to convert our Git Wiki from .md to .docx files and some images are not displayed in the resulting Word file. It seems that whether the image will be shown depends on the URL and not the image itself.
Example of image references in an original .md file that would result in an error in .docx:
![irr](https://git.{project}.com/pb/{project}/-/wikis/uploads/addf556fa0eaea08b97955c5da7b6229/02_01_Funds___IRR.png)
But the same image uploaded to a different service works fine with the following reference:
![irr_imgur](https://i.imgur.com/{image_id}.png)
Also, slightly different address on the same Git Wiki works fine too:
![vc-benchmarking-fund](https://git.{project}.com/pb/{project}/uploads/06befbe869ba02844f344f86adc1f1f4/vc-benchmarking-fund.png)
Pandoc shows no errors. With verbose logging on it shows the following:
[INFO] Fetching https://git.{project}.com/pb/{project}/-/wikis/uploads/addf556fa0eaea08b97955c5da7b6229/02_01_Funds___IRR.png...
[INFO] Fetching https://i.imgur.com/{image_id}.png...
But the first image is shown as an error, and the second is displayed fine. Errorred images content don't seem to be included in docx file.
The command I use for conversion:
pandoc C:\GitWiki\Mediator\Business-Domain\Funds\Advanced-Search-Funds-IRR-Search-functionality.md -s -o C:\GitWiki\Migrated\Business-Domain\Funds\Advanced-Search-Funds-IRR-Search-functionality.docx
Is there a way to fix it? Is it a specific part of the URL that causes this issue?
P.S. Sorry for the placeholders, I'm under NDA

Import video file into vscode

I have converted a m4v file type into a mp4 file type with https://cloudconvert.com. Currently in my Visual Studio Code set up I have assests/video/videoName.mp4. When I click on the mp4 file I get a message saying "The file is cannot be displayed in the editor because it is binary or uses unsupported text encoding". Any tips? I may be overlooking a small detail.
you need to download the MPEG-4 PREVIEW extension, and then it will open normally

Invalid Binary File after uploading on ITunesConnect

I have built an iPhone application and was uploading the 4th version when the Invalid Binary status showed up on ITunes Connect. The 1st 3 versions uploaded smoothly.
I recieved a mail from Apple with the following error
Invalid File Name - Your package contains a file 'appname.app/Icon ' with a name that contains invalid characters. Avoid using control characters in the file names.
I am unable to zero down on the trouble making file. Any leads on how I could debug this? Have been stuck on it for 2 days now.
App icon file must be named Icon.png. It appears that your binary includes a file with incorrect name or a space in between. Check the app icon file's name.
Also check your XCode project for any stray file with name Icon .png. Sometimes due to version control softwares there can be some hidden files backup with strange name. Check for hidden files/folders with name Icon . in your XCode project. Any such files getting included in your XCode project will get added in the app binary resources.
In my case I found the Icon .png making a search in the filter of the Project Navigator
I delete it and it worked.

php - php Thumb file not writeable

i'm using ffmpeg for extracting a video frame from which i want to create a thumbnail using php thumb.
creating the video frame works, but when trying to save the thumbnail file (under a different name - same directory) i'm getting this error:
PHP Fatal error: Uncaught exception 'RuntimeException' with message 'File is not writeable, and could not correct permissions: d:/Webs/bla.jpg' in D:\Webs\phpThumb\lib\GdThumb.inc.php:656
it can't be a permission problem as i can already store the videoframe into the same folder.
any ideas what could be wrong?
I had the same issue. I solved it with saving the file with document_root:
$phpthumb->adaptiveResize(100, 100)->save($_SERVER["DOCUMENT_ROOT"].'/public/uploads/thumbs/filename.jpg');
Found the answer in this question: https://stackoverflow.com/a/17684098/317326