Android resource compilation failed... Android Studio 4.0.1 - android

i have recently installed Android Studio 4.0.1 on windows to start with app development. The ide was working well and i created some very small apps with it.. but recently the ide throws this error when trying to build the code (shown in image). it throws the same error even for the example "hello world" code that comes inbuilt with the Android Studio.
I tried reinstalling, and even downloading a fresh setup file and installed it, still the error remains.
The error is shown in the screen shot, it shows Android Resource compilation failed
I am new to this field, please help me in getting rid of this issue

you have an error in your xml file.
name="De" is missing the closing Quotation mark.
Be very careful with XML structure since sometimes it's hard to see the error.

Related

Android device manager IO error occurred while trying to rewrite a file

With Visual studio 2019 I created my first Xamarin Forms 5 project and tried to run it, and this is what happened. I tried copying the Android folder from drive "D" to "c:\ProgramFiles(x86)\Android" but that didnt help it either.
I have checked the path mentioned in this error and the "avd" folder there seems to be empty.
Also when I press ok on this error the emulator image behind keeps saying that its updating, and it keeps going on forever apparently.

Xamarin Forms 5 compiling to android not working

After updating my project to Xamarin Forms 5.0 I cant run it on my phone. I tried a blank Xamarin Forms 5.0 project and it worked, but my real project prints "Deployment was successful to [Device]" but nothing happends. It installs the app but it is corrupted or something, because the app is not visible on home screen, but exists in "settings > app" with no icon (and the size 154mb as it should be)
I have no idea what causes this and have tried everything to make it run on my phone. When archiving it I get "Cannot create archive file because the copy of mdbs files failed"
I get no compile errors when I press Build -> Build solution
I have tried deleting the app via adb/system and reinstalling it via vs.
I have tried removing the obj and bin folders and rebuilding.
I have tried rebooting and reinstalling android sdk.
I have tried restarting the android abs server
My phone is android-28 and the minsdk is 21, targetsdk is 29
(Xamarin.Forms v5.0.0.1874, Xamarin.Essentials v1.6.0, Visual Studio 2019 v16.8.4)
full build log when trying to debug: https://pastebin.com/dgqQvh24
1>Deployment was successful to [DEVICE].
This issue was caused by an invalid AndroidManifest.xml file. Simply removing a duplicate tag caused the build to succeed. For some reason xamarin forms 4.8 ignored this in the building process, but xamarin forms 5 "Failed to parse Activity Name" because of the duplicate tag.
For anyone expericing this issue just fix the AndroidManifest.xml

Strange Xamarin Forms Build Error for Android Project

I have seen a few questions about this error here on SO, but none pertaining to Xamarin Forms and VS2017, so this is not a duplicate.
I have a simple little project that demonstrates the rare use of constructors in XAML. I am getting the following build error:
Error: No resource found that matches the given name: attr
'android:keyboardNavigationCluster'
The error occurs in the file <project-name>/C, and my code contains zero references to this resource.
I am using a totally fresh re-install of VS2017, only now upgraded to v15.5.1, and have done nothing except delete an emulator left over from my previous installation that was not starting. I'm currently using the default Android_Accelerated_x86_Nougat (Android 7.1 API 25) emulator that was installed as part of the VS2017 install. I have made zero configuration changes in VS yet, this is straight 'out the box'.
The Xamarin Diagnostics 'mode' in the Output Window is empty, as no attempt has yet been made to deploy the app, because it won't build.
What can I look at and do about this?
I recreated the project from scratch in my new install of VS and now everything seems to work fine.

Getting error while switching from Android studio 2.1 to 2.2

I have updated my android studio 1.1 Preview 5 with Android studo 2.2.
When i open or create project is always gives an error like
Cannot load project: com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal error initializing 'com.intellij.debugger.DebuggerManager'
I have tried to load my previous android studio's configurations but still it gives an error.
Then i have started without importing configuration and it also gives an error.
I have tried to remove cache directory and then also gives an error.
So please help me to solve this problem.
To fix the problem I tried to download and reinstall the Android Studio
but the error appeared again on the second start of the app.
Finally I found that my desktop shortcut had a wrong target file studio.exe, not studio64.exe.
I spent a couple weeks figuring this one out but as it turns out the issue was with my Java Home environment variable. I had mistakenly set jre1.8.etc as my home when it in fact needed to be the jdk1.8.0_101.
I probably just clicked on the wrong dl link because when I redownloaded the jdk it replaced the jre file. Hope this helps.

Android Studio Blank Activity Compilation Fails

I have been coding for a few years now and decided it was time to sink my teeth into android development. So I downloaded the latest version of Android Studio and installed all the relevant components with the installer.
However when i try to create a new project, using the blank activity, without even changing a single line of code, or editing the project in any way, the compile fails with the below error:
android execution failed for task :app:packageDebug
> Implementing Class
I have no idea of to fix this, any help would be greatly appreciated.
Thanks
I have been having the same error message. This is what I have found out:
I have a Mac Book Air with a Custom OS Image installed (from work) and on this computer I see the same error message above even from a fresh install (custom image) and fresh install of JavaRE and JDK as per the Android Studio System Requirements. Also a fresh install of Android Studio using a Blank activity with no additional lines of code.
However, I reinstalled OS X 10.10 from scratch, straight from the App store, with no OS customizations, installed the same JavaRE, JDK and Android Studio and the Error message did not appear.
I have been scratching my head over this error for a while now and this is the only solution that I have found. I'll keep digging and report back if I find a better solution.

Categories

Resources