.net MAUI Splash screen android error - failed linking file resources - android

I'm trying to add a splash screen as described in the documentation:
<MauiSplashScreen Include="Resources\appsplash.svg" Color="#fff" />
The resource is in the appropriate directory with the 'MauiSplashScreen' Build Action
Works fine debugging on windows but trying to build/debug on android gives the following errors:
Error APT2061 failed linking file resources.
Error APT2260 resource drawable/appsplash (aka appname:drawable/appsplash) not found.
Any ideas?

In the official docuement, Include="Resources\appsplash.svg" is a full path, so you can change your code such as:
<MauiSplashScreen Include="Resources\Raw\appsplash.svg" Color="#fff" />
In addition, the build action of the splash svg is None, you can open the Splash Folder to check it.
So I suggest you put it in the Splash Folder and set its build action as none. Just like the default project does.

It was the format of the SVG; not sure what was wrong with the format exactly but adding a different SVG solved the issue

Related

I am have an error in Manifest AAPT: error: resource mipmap/ic_launcher_round not found

PC\AndroidStudioProjects\TabLayout\app\build\intermediates\packaged_manifests\debug\AndroidManifest.xml:12: AAPT: error: resource mipmap/ic_launcher_round (aka com.example.tablayout:mipmap/ic_launcher_round) not found
when you create your image assets make sure you choose debug mode or release mode. So make it a release mode and create your icon asset
Check your AndroidManifest.xml and find property android:roundIcon. Then remove this line, it's optional.
In case if you need android:roundIcon, just create it with in-IDE tools (right-mouse-click on resources directory, then "New" -> "Image Asset")
Android build failed due to mipmap/launcher_icon missing or path change. without launcher_icon app not install . drag and drop app icon to mipmap & re-run ur app.

How can I resolve the Android Studio Build Output error

Trying to build the app but have got the error: The error Confugure image asset1
Confugure image asset2
Confugure image asset3
ERROR:C:\Users\Alex\AndroidStudioProjects\Lm2\app\src\main\res\mipmap-anydpi-v26\ic_launcher_round.xml:3: AAPT: error: resource mipmap/ic_launcher_background (aka com.example.lm2:mipmap/ic_launcher_background) not found.
How can I resolve this?
I hope you have
put your launcher icons into the mipmap folder where they should always go.
added your adaptive icon to the app’s manifest.xml for “android:icon” (android:roundIcon) attribute
.
Fist hand try: Clean your project and Rebuild
Probable Issue reason: Malformed XML:
Solution:
Check if you have anything duplicated by mistake in your XML
Try Analyze > Inspect Code it will redirect you to the exact error.

After add images to drawable "Cannot resolve symbol R" issue not going away after clean, rebuild etc

I can't find a way to add images to drawable folder without getting "Cannot resolve symbol R" issue.
And once i get "Cannot resolve symbol R", I can't get rid of it by either clean, rebuild, sync, invalidate cache & restart solutions for the error. Only if i delete the files can I get the build to pass.
I am not sure what is wrong here.
Note: I am on Android Studio 2.1.1
I had exactly the same problem, and it was that I downloaded an "image.jpeg" extension from Internet and directly changed the extension saving it like "image.png", but Android studio still recognized it like image.jpeg.
I realized that when using top menu Analyze-Inpect code.
Once the inspection is finished a new window called 'Inspection' appears and in the follow carpets appears next:
Android > Lint > Usability > Icons
Icon format does not match the file extension
Misleading file extension; named .png but the file format is JPEG*
You are facing this issue because your drawable file name is either
having any capital letter or starting with a number or containing any special character like #,*,$ etc. rename it the
error will be gone.
You can use only small letters, underscore(_), numbers(not at beginning) & dot(.) in the name of drawable
For example the name could be ABC.png then rename it to abc.png and it will work.
1xYz.JPEG then rename it to _1xyz.jpeg
a#b.png then rename it to ab.png
After that clean and rebuild & there you Go..!!
I found that the extension of the file must match the actual format of the image.
For example, you will get this error if you changed the extension of an image from bmp to png and added it to the project

Xamarin Forms Ui project (Multiplatform)

I am making this UI for a multiplatform app using Xamarin on my Macbook.
I have set FormsUI as startup project.
Xamarin gives errors when i try to run the project on ios simulator.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets:
Error: Failed to load output manifest for ibtool: Unrecognized property list format. (XPlatformFormsUI.iOS)
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets:
Error: Output manifest contents: (XPlatformFormsUI.iOS)
This particular error has been mentioned in the Xamarin Forms forum; basically, something in one of the iOS assets (e.g. a storyboard) is the cause. Unfortunately, you don't get much information regarding WHICH asset it was in the error. Try creating a brand new solution and gradually introduce your changes until you hit the error.

How can I work with the settings app of aosp?

I just started working on android open source project and I am trying to modify the settings application but when I am importing it with android studio and trying to compile I get this error
Error:Execution failed for task ':app:mergeDebugResources'.
/app/src/main/res/values-nl/strings.xml: Error: Found item String/sdcard_unmount more than one time
Seems like there are multiple statements of string such as
<string name="sdcard_format" product="nosdcard" msgid="6285310523155166716">"USB-opslag wissen"</string>
<string name="sdcard_format" product="default" msgid="6713185532039187532">"SD-kaart wissen"</string>
It is causing errors, how can it be fixed?
For anyone looking for answers, this other one in SO is much better: Error:Error: Found item String/photoPickerNotFoundText more than one time
you need to change the package name, because u r installing setting app on device which already have the setting app with same package name. you have to import the code modify it and then copy the new src and res directory in to aosp and create the image of android.

Categories

Resources