implementation 'com.github.hakobast:dropdown-textview:0.3.1' - android

I face this problem:
AAPT: error: resource attr/title_text (aka com.example.DropdownTextView:attr/title_text) not found
I found this:
https://github.com/hakobast/DropdownTextView/issues/14
Unfortunately version 0.1.1 do not contain all functions.
If someone know the work-around please share.

I fixed the issue in 0.3.3 and now AAPT: error: resource attr/title_text (aka com.example.DropdownTextView:attr/title_text) not found is not coming.
Please find the detail for integrating the library at
https://stackoverflow.com/a/67520594/4828650

Related

Android resource linking failed datetimepicker attrs not found

there is a ton of questions pertaining to this type of exception an i really dont get how it came about. I guess the exception is telling me that there are a bunch of date picker attributes that it expected to find in the styles file of my app that it could not find and I do not understand why as I swear exactly the same code was compiling flawlessly a few months back. What I dont inderstand is why its even looking for those in my project folder all those attrs are actually found and well defined on the values file where the exception stems from. all suggestions such as cleaning and rebuilding or upgrading to androidx have not worked. this is so vexing
AAPT: C:\Users\theo\Desktop\GymLog_App\GymLogMulti\app\build\intermediates\incremental\mergeGenericVersionDebugResources\merged.dir\values\values.xml:3535: error: style attribute 'attr/minDate (aka com.example.android.gymlogmulti.generic:attr/minDate)' not found.
C:\Users\theo\Desktop\GymLog_App\GymLogMulti\app\build\intermediates\incremental\mergeGenericVersionDebugResources\merged.dir\values\values.xml:3536: error: style attribute 'attr/maxDate (aka com.example.android.gymlogmulti.generic:attr/maxDate)' not found.
C:\Users\theo\Desktop\GymLog_App\GymLogMulti\app\build\intermediates\incremental\mergeGenericVersionDebugResources\merged.dir\values\values.xml:3544: error: style attribute 'attr/weekDayTextAppearance (aka com.example.android.gymlogmulti.generic:attr/weekDayTextAppearance)' not found.
C:\Users\theo\Desktop\GymLog_App\GymLogMulti\app\build\intermediates\incremental\mergeGenericVersionDebugResources\merged.dir\values\values.xml:3545: error: style attribute 'attr/dateTextAppearance (aka com.example.android.gymlogmulti.generic:attr/dateTextAppearance)' not found.
C:\Users\theo\Desktop\GymLog_App\GymLogMulti\app\build\intermediates\incremental\mergeGenericVersionDebugResources\merged.dir\values\values.xml:3551: error: style attribute 'attr/datePickerMode (aka com.example.android.gymlogmulti.generic:attr/datePickerMode)' not found.
C:\Users\theo\Desktop\GymLog_App\GymLogMulti\app\build\intermediates\incremental\mergeGenericVersionDebugResources\merged.dir\values\values.xml:3552: error: style attribute 'attr/dtp_legacyLayout (aka com.example.android.gymlogmulti.generic:attr/dtp_legacyLayout)' not found.
C:\Users\theo\Desktop\GymLog_App\GymLogMulti\app\build\intermediates\incremental\mergeGenericVersionDebugResources\merged.dir\values\values.xml:3553: error: style attribute 'attr/calendarViewShown (aka com.example.android.gymlogmulti.generic:attr/calendarViewShown)' not found.
C:\Users\theo\Desktop\GymLog_App\GymLogMulti\app\build\intermediates\incremental\mergeGenericVersionDebugResources\merged.dir\values\values.xml:3638: error: style attribute 'attr/weekDayTextAppearance (aka com.example.android.gymlogmulti.generic:attr/weekDayTextAppearance)' not found.
C:\Users\theo\Desktop\GymLog_App\GymLogMulti\app\build\intermediates\incremental\mergeGenericVersionDebugResources\merged.dir\values\values.xml:3639: error: style attribute 'attr/dateTextAppearance (aka com.example.android.gymlogmulti.generic:attr/dateTextAppearance)' not found.
C:\Users\theo\Desktop\GymLog_App\GymLogMulti\app\build\intermediates\incremental\mergeGenericVersionDebugResources\merged.dir\values\values.xml:3644: error: style attribute 'attr/datePickerMode (aka com.example.android.gymlogmulti.generic:attr/datePickerMode)' not found.
I just found the source of the issue by using CTRL+SHIFT+F and looking for the problematic attributes in the code (of the entire scope). Turns out the culprit was a third party dependency. Once i uninstalled it it was fixed. I guess the issue came from updating gradle and these outdated libraries somehow interfering with it.
I still dont understand the nature of the issue exactly but I hope this helps someone else dealing with the same issue. I just spent waaay to long looking at this.

AAPT: Error: Resource attr/(various) not found

Having all kinds of problems tonight. Downloaded updated Android Studio and Gradle and coded a little and then started getting these errors. Have tried uninstalling android studio, changing the version of Gradle in my build file to an earlier version, using an older version of android studio, deleting the Gradle cache, and maybe one or three other things. Older versions of Android Studio now say my project must be used with Android 3.6.
These things the build output is complaining about all seem to exist in the file it's talking about at the exact line. Tried commenting them out... that didn't work either.
Little out of my league here. Any of you gray hairs see something I'm missing?
Any help much appreciated.
===========================================================================
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:268:5-4347:
AAPT: error: resource attr/flow_horizontalSeparator (aka
com.myproject.myproject:attr/flow_horizontalSeparator) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:268:5-4347:
AAPT: error: resource attr/flow_verticalSeparator (aka
com.myproject.myproject:attr/flow_verticalSeparator) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:269:5-3548:
AAPT: error: resource attr/flow_horizontalSeparator (aka
com.myproject.myproject:attr/flow_horizontalSeparator) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:269:5-3548:
AAPT: error: resource attr/flow_verticalSeparator (aka
com.myproject.myproject:attr/flow_verticalSeparator) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:271:5-4382:
AAPT: error: resource attr/flow_horizontalSeparator (aka
com.myproject.myproject:attr/flow_horizontalSeparator) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:271:5-4382:
AAPT: error: resource attr/flow_verticalSeparator (aka
com.myproject.myproject:attr/flow_verticalSeparator) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:271:5-4382:
AAPT: error: resource attr/motionProgress (aka
com.myproject.myproject:attr/motionProgress) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:274:5-588:
AAPT: error: resource attr/motionProgress (aka
com.myproject.myproject:attr/motionProgress) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:275:5-652:
AAPT: error: resource attr/motionProgress (aka
com.myproject.myproject:attr/motionProgress) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:284:5-653:
AAPT: error: resource attr/motionProgress (aka
com.myproject.myproject:attr/motionProgress) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:284:5-653:
AAPT: error: resource attr/waveDecay (aka
com.myproject.myproject:attr/waveDecay) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:288:5-232:
AAPT: error: resource attr/motionPathRotate (aka
com.myproject.myproject:attr/motionPathRotate) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:290:5-295:36:
AAPT: error: resource attr/motionProgress (aka
com.myproject.myproject:attr/motionProgress) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:318:5-232:
AAPT: error: resource attr/motionProgress (aka
com.myproject.myproject:attr/motionProgress) not found.
C:\Users\me\.gradle\caches\transforms-2\files-2.1\d083c96bf16f0afa497f0903aac86f7e\constraintlayout-2.0.0-beta2\res\values\values.xml:322:5-335:98:
AAPT: error: reso
Update:
Added implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4' to my app's build.gradle file and it worked.
Pretty simple question but going to leave this up there. Might save someone a few hours of ignorance.
My case was really different. I had set android:text=" ??? " in my layout file, when I changed it to android:text=" ? " it worked. I have no idea why this works, maybe it helps someone. It took me hours to find the issue.

Removing resource com.myapp.application:string/com_facebook_loginview_logged_in_using_facebook_f1gender without required default value

From one day to another I'm getting this error in my project:
Android resource linking failed
warn: removing resource com.myapp.application:string/com_facebook_loginview_logged_in_using_facebook_f1gender without required default value.
C:\Users\adamv\.gradle\caches\transforms-1\files-1.1\jetified-facebook-login-5.0.0.aar\93f0acb2a4de491348f33e5cac2f3dd4\res\drawable\com_facebook_button_login_background.xml:26: error: resource color/com_facebook_button_background_color_focused_disabled (aka com.myapp.application:color/com_facebook_button_background_color_focused_disabled) not found.
C:\Users\adamv\.gradle\caches\transforms-1\files-1.1\jetified-facebook-login-5.0.0.aar\93f0acb2a4de491348f33e5cac2f3dd4\res\drawable\com_facebook_button_login_background.xml:38: error: resource color/com_facebook_button_background_color_focused (aka com.myapp.application:color/com_facebook_button_background_color_focused) not found.
C:\Users\adamv\.gradle\caches\transforms-1\files-1.1\jetified-facebook-login-5.0.0.aar\93f0acb2a4de491348f33e5cac2f3dd4\res\drawable\com_facebook_button_login_background.xml:39: error: resource color/com_facebook_button_border_color_focused (aka com.myapp.application:color/com_facebook_button_border_color_focused) not found.
C:\a_projects\myapp-android\app\src\main\res\layout\activity_login.xml:75: error: resource drawable/com_facebook_button_icon_white (aka com.myapp.application:drawable/com_facebook_button_icon_white) not found.
C:\a_projects\myapp-android\app\src\main\res\layout\activity_register.xml:113: error: resource drawable/com_facebook_button_icon_white (aka com.myapp.application:drawable/com_facebook_button_icon_white) not found.
C:\a_projects\myapp-android\app\src\main\res\layout\activity_settings.xml:181: error: resource drawable/com_facebook_button_icon_white (aka com.myapp.application:drawable/com_facebook_button_icon_white) not found.
error: failed linking file resources.
I did nothing with the code. It is failing to build from one day to another.
In my gradle I use the following facebook libs:
implementation 'com.facebook.android:facebook-login:5.0.0'
implementation 'com.facebook.android:facebook-share:[5,6)'
These facebook libs were worked. I have another app where I use these, and that wan builds falwlessly.
Please, help if you can.
See Prince's answer here. If that does not work, you can manually set the colors.
<color name="com_facebook_button_background_color_focused_disabled">#3C5A99</color>
<color name="com_facebook_button_background_color_focused">#3C5A99</color>
<color name="com_facebook_button_border_color_focused">#3C5A99</color>

How to fix linking error on Android project

My compiler just showed this error. I have no idea what happened.
I'm testing a project which runs with firebase. On its request, I just went to project structure to change my minsdk to 26, but after I changed it, it provides these errors.
Since this is my first Android project, I have no idea what has happened.
Can somebody give me a hand and help me get through it?
Android resource linking failed
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1894: error: resource drawable/edit_text_background_dark_round (aka com.example.myapplication:drawable/edit_text_background_dark_round) not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1897: error: resource drawable/ic_down_arrow (aka com.example.myapplication:drawable/ic_down_arrow) not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v21\values-v21.xml:282: error: resource drawable/edit_text_background_dark_round (aka com.example.myapplication:drawable/edit_text_background_dark_round) not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v21\values-v21.xml:285: error: resource drawable/ic_down_arrow (aka com.example.myapplication:drawable/ic_down_arrow) not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2786: error: resource android:attr/fontVariationSettings not found.
C:\Users\user\AndroidStudioProjects\MyApplication\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2787: error: resource android:attr/ttcIndex not found.
error: failed linking references.
check XML files cause "android:attr/dialogCornerRadius not found"
means that 'dialogCornerRadius' is not defined , you can replace it
with value like "2dp" or initialise it in ' dimens.xml' check this
link to create 'dimen' file
How to use dimens.xml in Android?

React Native suddenly fail to build

So, I was doing some modification on my code this morning and it runs just like it used to. And then when I tried to run react-native run-android again after few hours, I got below error:
/Users/mimicreative/Documents/Kerja/Project/PictalogiDev/android/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/25.0.0/res/layout/abc_action_bar_title_item.xml:21:22-76: AAPT: No resource found that matches the given name (at 'style' with value '#style/RtlOverlay.Widget.AppCompat.ActionBar.TitleItem').
/Users/mimicreative/Documents/Kerja/Project/PictalogiDev/android/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/25.0.0/res/layout/abc_action_bar_title_item.xml:30:41-91: AAPT: No resource found that matches the given name (at 'layout_marginTop' with value '#dimen/abc_action_bar_subtitle_top_margin_material').
/Users/mimicreative/Documents/Kerja/Project/PictalogiDev/android/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/25.0.0/res/layout/abc_action_bar_view_list_nav_layout.xml:22:22-48: AAPT: No resource found that matches the given name (at 'style' with value '?attr/actionBarTabBarStyle').
So much line of error like above then at the end of the line I got this:
Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
How can I fix this? What causes the error?
For anyone having this issue, you just need to update the Android Support Repository using Android SDK Manager.

Categories

Resources