changing Launcher icon flutter error - gradle

I was trying to change the Launcher icon in flutter and got this error: failed processing manifest. Failed to execute aapt
I did not even know there is a second manifest file located in another folder according to that log file. am new to flutter

Under android folder (look at the screenshot), replace ALL icons and update the name CORRECTLY under AndroidManifest.xml file

To change the icon of the two applications, I recommend you use this add-on:
https://pub.dartlang.org/packages/flutter_launcher_icons
1º Add dependency to your Flutter project's pubspec.yaml below any existing dependencies
2º Within the same pubspec.yaml file, add flutter_icons config section
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: "^0.3.2"
flutter_icons:
image_path: "icon/icon.png"
android: true
ios: "Example-Icon"

Related

Xamarin iOS Build System.IO.FileNotFoundException: Could not find file "../obj/iPhone/Dev/actool/bundle/my20x20.png"

I have different Info.plist files for different environments e.g. Dev.Info.plist.
NOTE: I copy and paste all contents of Dev.Info.plist into Info.plist before I start my build.
When I build & run locally, I have no issues but I build & run against iPhoneSimulator. My CI/CD pipeline runs against iPhone and for some reason, it does not pick up my image assets.
Error
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.Shared.targets(1057,3): error : System.IO.FileNotFoundException: Could not find file "/Users/runner/work/1/s/MyApp.iOS/obj/iPhone/Dev/actool/bundle/my20x20.png" [/Users/runner/work/1/s/MyApp.iOS/MyApp.iOS.csproj]
iOS CSPROJ
<ImageAsset Include="Assets.xcassets\AppIcons_Dev.appiconset\20.png">
<Visible>false</Visible>
</ImageAsset>
Dev.Info.Plist
<key>XSAppIconAssets</key>
<string>Assets.xcassets/AppIcons_Dev.appiconset</string>
The problem was that my iOS AppIcons in the AssetCatalog had a bit depth of 24.
This comes from saving them as PNG without marking them as transparent. When marked as transparent they have a bit depth of 32.
After that, the build pipeline worked as intended.

Teamcity buildpath change nativescript project name

Teamcity create a path BuildAgent/work/d455sdffs654... and change my nativescript project name and app name, i try make a new folder and change to this new folder but the project name not change.
npm install --save-dev nativescript-dev-webpack
tns platform remove android
tns platform add android
tns build android --bundle
If you like your project name to be independent of its folder name, you may update the value for CFBundleDisplayName key in App_Resources/iOS/info.plist for iOS.
<key>CFBundleDisplayName</key>
<string>YourAppName</string>
For Android you may modify the value of app_name and title_activity_kimera keys in App_Resources/Android/src/main/res/values/strings.xml.

AD-Hoc option is not coming in my project in xamarin

I added it manually in app.iOS.csproj file in tag and in the main solution file. Now it is showing and I am successfully able to archive my project and iPA file is made. But the problem is that I am unable to install my app on device when installing through diawi.
I solved the problem by adding "aps-environment" key with value as
"production" in Entitlements.plist in my iOS project
Previously there was "development" as value. I changed it to "production"

xamarin.form not buliding for android

I created a new application in Xamrin.forms , PCL
but its android solution does not builds.
gets the following stack :
Severity Code Description Project File Line Suppression State
Error Please install package: 'Xamarin.Android.Support.v7.MediaRouter' available in SDK installer.
Java library file C:\Users\sachin.manu\AppData\Local\Xamarin\Xamarin.Android.Support.v7.MediaRouter\23.0.1.3\embedded\classes.jar doesn't exist.
XamarinHybridWebView.Droid
Severity Code Description Project File Line Suppression State
Error Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip
and extract it to the C:\Users\sachin.manu\AppData\Local\Xamarin\Xamarin.Android.Support.Design\23.0.1.3\content directory.
XamarinHybridWebView.Droid
and more , i am not even sure about the path referred , Is there any SDK missing ? I tried installing Fresh Xamarin still facing the issue, Any suggestions please ?
attached build image
This generally happens during build because it is trying to download the android_m2repository_r22.zip.
It might be because of slow/no internet. However, you can follow these steps:
Download the file.
Create a new folder content within.
C:\Users\sachin.manu\AppData\Local\Xamarin\Xamarin.Android.Support.Design\23.0.1.3\
Extract the m2repository folder from the zip file and place it within the content folder.
Restart Visual Studio and try building again.
Happy Coding!

ibtool can't build - The file “Info.plist” couldn’t be opened because there is no such file

I get the following error when building my project in Xcode 7 beta 5:
Summary:
My project won't build, the following error is given:
LinkStoryboards
cd /Users/lewis/Projects/MyApp/code/ios9
export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode-beta.app/Contents/Developer/usr/bin/..
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module MyApp --target-device iphone --minimum-deployment-target 8.0 --output-format human-readable-text --link /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Products/Debug-iphonesimulator/MyApp.app /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Storyboard\ ios7.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Settings.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/TrackIt.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/UserList.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Migration.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Intro.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/YourMyApp.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/AddMeasurements.storyboardc
/* com.apple.ibtool.errors */
: error: The file “Info.plist” couldn’t be opened because there is no such file.
Failure Reason: The file doesn’t exist.
Underlying Errors:
Description: The operation couldn’t be completed. No such file or directory
Failure Reason: No such file or directory
I've tried the following based on advice from other SO questions:
Clean build folder
Delete derived data
Checked the Info.plist exists in project folder
Checked file is expected in Build Settings > Packaging > Info.plist file
Copying Info.plist into the the folders mentioned in the ibtool command
Adding the Info.plist to the Copy Bundle Resources section of Build Phases
Opening all of the Storyboard files in Xcode and checking they open and don't show any errors
Reinstalling Xcode Beta
Restarting machine (Mac OS 10.10.5)
I've filed a radar (because the project builds fine on Xcode 6), but it feels like there's more I could do to diagnose this myself. Any help greatly appreciated.
The problem is, you have a storyboard that is targeted lower than the target. Set the target of the storyboard to be higher (or better, set it to be the same as deployment target), and it will compile.
Same issue on Xcode 7 Beta 5, I fixed this by creating a new storyboard, and copying all objects from old storyboard to new one.

Resources