Android ADT r12 for MAC - android

I am getting an error message regarding a styles.xml on my Eclipse for MAC OS X. Below is the error message:
error: Error retrieving parent for item: No resource found that matches the given name 'android:WindowTitleBackground'.
I googled this issue and found out that I will require an SDK r11 update to solve this problem. But since the latest SDK is r12, I downloaded using my Eclipse. But I still see this problem.
I am new to Android, so I do not really know how to troubleshoot this problem. I am hoping you guys can help me. Do let me know if I need to provide more information. Thanks in advance.

Here is a bug report where everything is explained: http://code.google.com/p/android/issues/detail?id=18659
WindowTitleBackground is a private resource and thus you cannot inherit from it, instead you should copy the parent resource.

Try this: #android:style/WindowTitleBackground
You need to specify which type this #android is, so adding style should work.

Related

Gradle Error: Colliding Attributes when creating Build

when building an .apk file for Android in Unity with the Wikitude SDK I always get the Error: Gradle Error: Colliding Attributes.
I hope someone had the same problem or can solve this, because I really don't know what to do.
I would be very happy if someone could help me here!
I use Unity 2019.3.6f1 and Wikitude SDK Expert Edition for Unity 9.0.
Attached is the error log with the error itself and a video of the development process in unity, if this helps (see link*).
Thanks in advance! :)
Best regards,
Sebastian
*Link for the video: https://1drv.ms/v/s!AlxZ4c5bmzbug_MUntWtUsJlufLlrg
Error Message:
This error means that there are multiple conflicting settings for that attribute in you project. To get around this you will need to edit your AndroidManifest.xml file in your Plugins/Android folder.
If you look at the logs it will tell you a "Suggestion" on how to fix it. Just go add that override for the attribute in your AndroidManifest.xml file.

Setting usesCleartextTraffic in Eclipse Android project

I need to set the Android attribute
android:usesCleartextTraffic="true"
in an Eclipse Android project, but when I do so, it gives me the error:
No resource identifier found for attribute 'usesCleartextTraffic' in package 'android'
Any ideas on how to fix this problem?
Thanks.
I believe I found the problem. I needed to target a more recent SDK. Unfortunately doing so create a whole host of other problems which I will have to sort through, but they are unrelated to this question.

Extreme case of "Error retrieving parent for item"

My Xamarin Android project doesn't compile anymore, with a couple error messages saying
Error APT0000: Error retrieving parent for item: No resource found that matches the given name 'Widget.Design.TabLayout'
Other errors that were thrown previously were in the same style, but said
No resource found that matches the given name (at 'textColor' with value '#color/md_white_1000')
I am aware that this is a very common Xamarin bug that is normally fixed by cleaning and rebuilding or, in rare cases, by clearing all packages and package caches so that they are downloaded again. However, this did not fix my error. I also completely reinstalled Xamarin and Visual Studio, but the error persists. At this point, i don't really know what to do except completely reformat my Mac.
Are there any trouble shooting steps I missed? Is this a bug that is only present in some version so that I need to downgrade? Please help, as I haven't been able to compile my code now for two days.
The log is saying that the app could not find certain resources, like TabLayout and #color/md_white_1000.
Did you install the NuGet packages related to Android AppCompat libraries? In NuGet Package Manager, search for AppCompat libraries. For example:
https://www.nuget.org/packages/Xamarin.Android.Support.v7.AppCompat
Those are necessary to find AppCompat resources and themes.
I found the answer: Apparently the newest version of the Xamarin AppCompat Package is corrupt. I was able to compile again by manually copying the project from my colleague, who hadn't updated his packages (the packages are in our .gitignore). That solved the problem and also explains why clearing the package caches didn't work: Visual Studio simply re-downloaded the corrupt package.

Compiling and using AppCompatActivity in Eclipse

I have the latest Android Support Library, Android Support Repository and Google Repository (Rev. 23.1, 24, 22 respectively) and working with Eclipse Mars.1(4.5.1)
In the process of giving a make-over to an existing app, I am trying to import the v7.AppCompatActivity library, closing all other projects in workspace and silent prayers. ( ;-) )
Observations:
I daresay I have been unsuccessful even after following the instructions here to the dot.
Ian Lake's blog looks all hunky-dory, but Utopian.
Reading up tons of excellent answers on SO did not yet help. No matter what target is set in the project.properties page or what Build Target is set in the Eclipse Project Properties dialog - just cannot seem to get rid of this (and very similar) compile error(s):
android-support-v7-appcompat\res\values-v23\styles_base.xml:20: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Going by the number of similar questions, I am surely not alone. Pray, can someone kindly throw some light on how to import the v7 support library without going insane?
Thanks in advance!
None of the answers or blogs pointed out the following, except #pkuszewski.
The above issue resolves on
upgrading to Android 6 Marshmallow API 6.0 with the SDK manager
setting the Build Target for the AppCompat project to Android 6.0
Did I hear, "Duh"? :)
Thanks, #pkuszewski!
SDK Manager fragment looks like this, post the fix:

Resource entry com.crashlytics.android.build_id is already defined - Android Studio

Out of nowhere my Android Studio project started giving me this error: Resource entry com.crashlytics.android.build_id is already defined. I've seen a similar question to mine here on SO, but the solution is not working for me. Every time I try to delete the duplicate entry, it just keeps regenerating on a project rebuild. I could really use any suggestions at this point. Thanks in advance!
Here is the whole error:
C:\Users\Alex\Documents\AppDevelopment\workspace\AsylumLakePreserve\build\intermediates\exploded-aar\workspace\google-play-services_lib\unspecified\res\values\values.xml
Error:(1) Resource entry com.crashlytics.android.build_id is already defined.
C:\Users\Alex\Documents\AppDevelopment\workspace\AsylumLakePreserve\build\intermediates\res\debug\values\com_crashlytics_build_id.xml
Error:(9, 1) Originally defined here.
As pointed out by #yehan in his comment below, these days the issue is most likely causes by not removing fabric decencies/data when upgrading to fire base.
Original:
You've probably already worked around this looking at how old the question is and looking at the error I'm not sure you've got the same issue... but for anyone else stumbling on this one I also ran into something similar whilst updating an old code base from Crashlytics to Fabric and speaking to the Fabric support team they stated that deleting the com_crashlytics_export_strings.xml that was under my app/src/.. directory folder was the correct solution.

Categories

Resources