Android Question Help required regarding while upgrading to B4A 6

Anser

Well-Known Member
Licensed User
Longtime User
Hi,

I followed the instructions. Followed the required Manifest Snippets. I use Appcompat in my app. I followed the instructions regarding the new AppCompat ver 3.20

When I compile with B4A 6, I get the following compilation error.

B4X:
B4A version: 6.00
Parsing code.    (0.12s)
Compiling code.    (0.31s)
Compiling layouts code.    (0.01s)
Organizing libraries.    (0.00s)
Generating R file.    Error
ERROR: resource directory 'c:\android\extras\android\support\v7\cardview\res' does not exist

After updating Anroid SDK's, I don't find any folder like
'c:\android\extras\android\support\v7\cardview\res'

I have removed the AdditionalRes clause, do I have to add any AdditionalJar to use AppCompat
For eg something similar as given below

'For Google Maps
#AdditionalJar: com.google.android.gmslay-services-maps

EDIT :- I use MSMaterialDrawer, MSCardView in my project.

Entries in my Main that are still pointing to Android SDK folders.
B4X:
'AppCompat Resources from by B4A Corwin's lib
'#AdditionalRes: D:\B4A-Additional-Libraries\CustomLibsRes\b4a_appcompat, de.amberhome.objects.appcompat

'AppCompat Resources from Android
#AdditionalRes: C:\Android\extras\android\support\v7\appcompat\res, android.support.v7.appcompat

'CardView Resources from Android
#AdditionalRes: C:\Android\extras\android\support\v7\cardview\res
'MaterialDrawer Resources From the Lib Developer
#AdditionalRes: D:\B4A-Additional-Libraries\CustomLibsRes\MSMaterialDrawer\res

'For Google Maps
#AdditionalJar: com.google.android.gms:play-services-maps
'For FusedLocationProvider
#AdditionalJar: com.google.android.gms:play-services-location

'#ExcludeClasses: .games, .drive, .ads, .fitness, .wearable, .measurement, .cast, .auth, .nearby
'#ExcludeClasses: .tagmanager, .analytics, .wallet, .plus, .vision

Any help will be appreciated.

Regards

Anser
 
Last edited:

Anser

Well-Known Member
Licensed User
Longtime User
I don't know whether I am doing it the right way or not. As I found the support folder missing inside \AndroidSDK\extras\android
From my Backup of the Android SDK, I tried copying the folder support to \AndroidSDK\extras\android

Unfortunately after that I get the following error while compiling.
B4X:
B4A version: 6.00
Parsing code.    (0.13s)
Compiling code.    (0.31s)
Compiling layouts code.    (0.02s)
Organizing libraries.    (0.00s)
Generating R file.    Error
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:28: error: Attribute "title" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:29: error: Attribute "height" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:31: error: Attribute "isLightTheme" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:43: error: Attribute "windowActionBar" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:46: error: Attribute "windowNoTitle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:51: error: Attribute "windowActionBarOverlay" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:55: error: Attribute "windowActionModeOverlay" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:60: error: Attribute "windowFixedWidthMajor" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:64: error: Attribute "windowFixedHeightMinor" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:69: error: Attribute "windowFixedWidthMinor" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:73: error: Attribute "windowFixedHeightMajor" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:79: error: Attribute "windowMinWidthMajor" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:84: error: Attribute "windowMinWidthMinor" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:94: error: Attribute "actionBarTabStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:95: error: Attribute "actionBarTabBarStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:96: error: Attribute "actionBarTabTextStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:97: error: Attribute "actionOverflowButtonStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:98: error: Attribute "actionOverflowMenuStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:101: error: Attribute "actionBarPopupTheme" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:103: error: Attribute "actionBarStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:108: error: Attribute "actionBarSplitStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:112: error: Attribute "actionBarTheme" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:120: error: Attribute "actionBarWidgetTheme" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:123: error: Attribute "actionBarSize" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:127: error: Attribute "actionBarDivider" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:129: error: Attribute "actionBarItemBackground" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:132: error: Attribute "actionMenuTextAppearance" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:135: error: Attribute "actionMenuTextColor" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:142: error: Attribute "actionModeStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:143: error: Attribute "actionModeCloseButtonStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:145: error: Attribute "actionModeBackground" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:147: error: Attribute "actionModeSplitBackground" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:149: error: Attribute "actionModeCloseDrawable" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:151: error: Attribute "actionModeCutDrawable" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:153: error: Attribute "actionModeCopyDrawable" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:155: error: Attribute "actionModePasteDrawable" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:157: error: Attribute "actionModeSelectAllDrawable" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:159: error: Attribute "actionModeShareDrawable" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:161: error: Attribute "actionModeFindDrawable" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:163: error: Attribute "actionModeWebSearchDrawable" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:166: error: Attribute "actionModePopupWindowStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:174: error: Attribute "textAppearanceLargePopupMenu" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:176: error: Attribute "textAppearanceSmallPopupMenu" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:185: error: Attribute "dialogTheme" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:187: error: Attribute "dialogPreferredPadding" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:189: error: Attribute "listDividerAlertDialog" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:197: error: Attribute "actionDropDownStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:199: error: Attribute "dropdownListPreferredItemHeight" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:201: error: Attribute "spinnerDropDownItemStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:203: error: Attribute "homeAsUpIndicator" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:206: error: Attribute "actionButtonStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:209: error: Attribute "buttonBarStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:211: error: Attribute "buttonBarButtonStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:215: error: Attribute "selectableItemBackground" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:217: error: Attribute "selectableItemBackgroundBorderless" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:219: error: Attribute "borderlessButtonStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:221: error: Attribute "dividerVertical" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:223: error: Attribute "dividerHorizontal" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:225: error: Attribute "activityChooserViewStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:228: error: Attribute "toolbarStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:230: error: Attribute "toolbarNavigationButtonStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:233: error: Attribute "popupMenuStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:235: error: Attribute "popupWindowStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:238: error: Attribute "editTextColor" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:240: error: Attribute "editTextBackground" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:243: error: Attribute "imageButtonStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:250: error: Attribute "textAppearanceSearchResultTitle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:252: error: Attribute "textAppearanceSearchResultSubtitle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:254: error: Attribute "textColorSearchUrl" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:256: error: Attribute "searchViewStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:264: error: Attribute "listPreferredItemHeight" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:266: error: Attribute "listPreferredItemHeightSmall" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:268: error: Attribute "listPreferredItemHeightLarge" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:271: error: Attribute "listPreferredItemPaddingLeft" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:273: error: Attribute "listPreferredItemPaddingRight" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:276: error: Attribute "dropDownListViewStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:277: error: Attribute "listPopupWindowStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:280: error: Attribute "textAppearanceListItem" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:282: error: Attribute "textAppearanceListItemSmall" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:291: error: Attribute "panelBackground" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:293: error: Attribute "panelMenuListWidth" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:295: error: Attribute "panelMenuListTheme" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:297: error: Attribute "listChoiceBackgroundIndicator" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:306: error: Attribute "colorPrimary" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:310: error: Attribute "colorPrimaryDark" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:314: error: Attribute "colorAccent" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:317: error: Attribute "colorControlNormal" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:320: error: Attribute "colorControlActivated" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:323: error: Attribute "colorControlHighlight" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:326: error: Attribute "colorButtonNormal" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:329: error: Attribute "colorSwitchThumbNormal" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:332: error: Attribute "controlBackground" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:338: error: Attribute "alertDialogStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:339: error: Attribute "alertDialogButtonGroupStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:340: error: Attribute "alertDialogCenterButtons" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:342: error: Attribute "alertDialogTheme" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:345: error: Attribute "textColorAlertDialogListItem" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:348: error: Attribute "buttonBarPositiveButtonStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:351: error: Attribute "buttonBarNegativeButtonStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:354: error: Attribute "buttonBarNeutralButtonStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:362: error: Attribute "autoCompleteTextViewStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:364: error: Attribute "buttonStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:366: error: Attribute "buttonStyleSmall" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:368: error: Attribute "checkboxStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:370: error: Attribute "checkedTextViewStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:372: error: Attribute "editTextStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:374: error: Attribute "radioButtonStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:376: error: Attribute "ratingBarStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:378: error: Attribute "ratingBarStyleIndicator" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:380: error: Attribute "ratingBarStyleSmall" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:382: error: Attribute "seekBarStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:384: error: Attribute "spinnerStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:386: error: Attribute "switchStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:402: error: Attribute "navigationMode" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:411: error: Attribute "displayOptions" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:423: error: Attribute "subtitle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:425: error: Attribute "titleTextStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:427: error: Attribute "subtitleTextStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:429: error: Attribute "icon" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:431: error: Attribute "logo" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:433: error: Attribute "divider" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:435: error: Attribute "background" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:437: error: Attribute "backgroundStacked" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:439: error: Attribute "backgroundSplit" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:441: error: Attribute "customNavigationLayout" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:445: error: Attribute "homeLayout" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:447: error: Attribute "progressBarStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:449: error: Attribute "indeterminateProgressStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:451: error: Attribute "progressBarPadding" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:456: error: Attribute "itemPadding" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:458: error: Attribute "hideOnContentScroll" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:461: error: Attribute "contentInsetStart" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:464: error: Attribute "contentInsetEnd" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:467: error: Attribute "contentInsetLeft" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:470: error: Attribute "contentInsetRight" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:472: error: Attribute "elevation" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:475: error: Attribute "popupTheme" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:499: error: Attribute "closeItemLayout" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:504: error: Attribute "paddingStart" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:506: error: Attribute "paddingEnd" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:515: error: Attribute "theme" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:525: error: Attribute "backgroundTint" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:528: error: Attribute "backgroundTintMode" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:562: error: Attribute "preserveIconSpacing" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:644: error: Attribute "showAsAction" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:669: error: Attribute "actionLayout" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:674: error: Attribute "actionViewClass" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:680: error: Attribute "actionProviderClass" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:699: error: Attribute "layout" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:702: error: Attribute "iconifiedByDefault" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:706: error: Attribute "queryHint" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:709: error: Attribute "defaultQueryHint" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:715: error: Attribute "closeIcon" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:717: error: Attribute "goIcon" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:719: error: Attribute "searchIcon" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:721: error: Attribute "searchHintIcon" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:723: error: Attribute "voiceIcon" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:725: error: Attribute "commitIcon" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:727: error: Attribute "suggestionRowLayout" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:729: error: Attribute "queryBackground" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:731: error: Attribute "submitBackground" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:738: error: Attribute "initialActivityCount" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:745: error: Attribute "expandActivityOverflowButtonDrawable" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:750: error: Attribute "textAllCaps" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:777: error: Attribute "measureWithLargestChild" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:781: error: Attribute "showDividers" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:788: error: Attribute "dividerPadding" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:799: error: Attribute "titleTextAppearance" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:800: error: Attribute "subtitleTextAppearance" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:804: error: Attribute "titleMargins" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:805: error: Attribute "titleMarginStart" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:806: error: Attribute "titleMarginEnd" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:807: error: Attribute "titleMarginTop" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:808: error: Attribute "titleMarginBottom" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:813: error: Attribute "maxButtonHeight" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:815: error: Attribute "collapseIcon" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:817: error: Attribute "collapseContentDescription" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:823: error: Attribute "navigationIcon" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:826: error: Attribute "navigationContentDescription" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:836: error: Attribute "logoDescription" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:838: error: Attribute "titleTextColor" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:840: error: Attribute "subtitleTextColor" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:845: error: Attribute "state_above_anchor" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:857: error: Attribute "overlapAnchor" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:863: error: Attribute "color" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:865: error: Attribute "spinBars" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:867: error: Attribute "drawableSize" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:869: error: Attribute "gapBetweenBars" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:871: error: Attribute "arrowHeadLength" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:873: error: Attribute "arrowShaftLength" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:875: error: Attribute "barLength" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:877: error: Attribute "thickness" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:880: error: Attribute "drawerArrowStyle" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:895: error: Attribute "buttonTint" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:898: error: Attribute "buttonTintMode" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:920: error: Attribute "track" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:926: error: Attribute "thumbTextPadding" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:928: error: Attribute "switchTextAppearance" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:930: error: Attribute "switchMinWidth" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:932: error: Attribute "switchPadding" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:934: error: Attribute "splitTrack" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:936: error: Attribute "showText" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:954: error: Attribute "buttonPanelSideLayout" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:955: error: Attribute "listLayout" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:956: error: Attribute "multiChoiceItemLayout" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:957: error: Attribute "singleChoiceItemLayout" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:958: error: Attribute "listItemLayout" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:965: error: Attribute "allowStacking" has already been defined
c:\android\extras\android\support\v7\appcompat\res\values\attrs.xml:971: error: Attribute "srcCompat" has already been defined

Upgrading Android SDK is always a nightmare for me. Have to keep track of lot of tweaks. .jar to b copied, to be deleted etc etc..

Do I have to delete the android-support-v4.jar already existing in my Additional Lib folder ?

I could find the following .jar files in my B4A Additional Lib folder

android-support-design.jar
android-support-v4.jar
android-support-v7-appcompat.jar
android-support-v7-recyclerview.jar

Can I delete the above or should I maintain it there ?

Any help please...
 
Last edited:
Upvote 0

Anser

Well-Known Member
Licensed User
Longtime User
The error posted in my previous post vanished when I commented out both the following lines.
B4X:
'AppCompat Resources from by B4A Corwin's lib
'#AdditionalRes: D:\B4A-Additional-Libraries\CustomLibsRes\b4a_appcompat, de.amberhome.objects.appcompat

'AppCompat Resources from Android
'#AdditionalRes: C:\Android\extras\android\support\v7\appcompat\res, android.support.v7.appcompat


But now I get the following error while compiling.

B4X:
B4A version: 6.00
Parsing code.    (0.11s)
Compiling code.    (0.32s)
Compiling layouts code.    (0.02s)
Organizing libraries.    (0.00s)
Generating R file.    Error
Failed to generate resource table for split ''
d:\b4a-additional-libraries\customlibsres\afollestad_material-dialogs\res\values-v11\styles.xml:16: error: Error: No resource found that matches the given name (at 'android:actionModeCloseDrawable' with value '@drawable/abc_ic_ab_back_mtrl_am_alpha').

Looks like Afollestad Material Dialogs additional resource is creating this error.

Any hint ?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Anser

Well-Known Member
Licensed User
Longtime User
I am using the Older one. It is working fine in B4A 5.8 and related Android SDK. If the new one solves this problem, then I will definitely move to the new one.

Today, I updated Android SDK as a part of upgrading to B4A 6.

I was just wondering whether I need to maintain the Android Support library files in the new system, to support the old B4A additional libraries which doesn't fall in the mavern and aar file category. And that whether both the type of libraries will work together or not.
 
Upvote 0

corwin42

Expert
Licensed User
Longtime User
For Updating to B4A 6.0 with an AppCompat project:
  1. Install "Android Support Repository" with SDK Manager. At least version 33 is required.
  2. Install "Android SDK build-tools" in version 23.0.3 with SDK Manager. Deinstall all other versions.
  3. Install "Android N (API 24) SDK platform" with SDK Manager. Select its android.jar in "Tools/Configure Paths" in B4A.
  4. Install latest AppCompat library in your additional libraries folder. At least v3.20 (3 files: .jar, .xml, .aar)
    • If you are updating from an older version, delete the old resource folder of the AppCompat wrapper library. It is not needed anymore.
  5. If you use DesignSupport library update to the latest version (at least 2.0)
  6. In your project: Remove all #AdditionalRes: lines that point to a path in the Android SDK.
  7. In your project: Remove the #AdditionalRes: line for the AppCompat library wrapper

If you want to be sure that no projects use the old support library *.jar files (the jars are not updated since march 2016 and there are several bugfixes in the new versions) do these optional steps:
  1. Delete all android-support-*.jar files from your additional libraries folder.
  2. Since there is still a problem with B4A 6.0 and a mix of old and new libraries (B4A sometimes still requests old jar files) you should modify all xml of libraries which depend on android-support.*.jar files. Replace the DependsOn as follows:
    • android-support-v4.jar -> com.android.support:support-v4
    • android-support-v7-appcompat.jar -> com.android.support:appcompat-v7
    • android-support-v7-cardview.jar -> com.android.support:cardview-v7
    • android-support-v7-recyclerview.jar -> com.android.support:recyclerview-v7
    • android-support-design.jar -> com.android.support:design
Edit: Steps 6 and 9 extracted as optional steps.
 
Last edited:
Upvote 0

Anser

Well-Known Member
Licensed User
Longtime User
I am following your instructions one by one.
Following the instructions in point No 6, I deleted all the android-support-*.jar files from my additional libraries folder.

After that when I tried to compile it showed the Copying Library Resource error android-support-v4.jar Error. Then I copied the empty android-support-v4.jar file.

Now it is showing the following error ie android-support-v7-appcompat
Copying libraries resources Error
Could not find file 'C:\Program Files (x86)\Anywhere Software\Basic4android\libraries\android-support-v7-appcompat.jar'.

I could not locate an empty jar for this one in the forum.

Can I create a file using notepad and save it as "android-support-v7-appcompat.jar" ? IS that OK ?
 
Upvote 0

corwin42

Expert
Licensed User
Longtime User
An empty jar file is attached. You can rename it as needed. Note that you can also use a non-empty jar. It doesn't matter.

As I wrote in my previous post steps #6 and #9 are not required and should be avoided.

I changed my post and declared these steps as optional.

I initially included them because I want to be sure that no project uses the old outdated *.jar files anymore. It's the decision of the developer if he wants to do them.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Delete all android-support-*.jar files from your additional libraries folder.
This step should be avoided for now as it will cause the copying libraries resources step to fail when using a library that still references the "old" resources (google-play-services.jar for example). Until this bug is fixed it is better to leave the jars in the additional libraries folder.
 
Upvote 0

Anser

Well-Known Member
Licensed User
Longtime User
If I have old libraries in my project, Should I keep "Google Play Services" installed in my Android SDK. ?

Will this conflict with the Google-services.json ?

As of now, on my PC, it is in "Not installed" status
 
Upvote 0

Anser

Well-Known Member
Licensed User
Longtime User
I got everything working.

Now the only issue is with the following lines in my Main

B4X:
'Afollestad_Material Dialogs Resources from the developer
#AdditionalRes: D:\B4A-Additional-Libraries\CustomLibsRes\afollestad_material-dialogs\res, com.afollestad.materialdialogs

If I don't comment the above AdditionalRes:, then I get the following compilation error.
B4X:
B4A version: 6.00
Parsing code.    (0.11s)
Compiling code.    (0.53s)
Compiling layouts code.    (0.05s)
Organizing libraries.    (1.63s)
Generating R file.    Error
Failed to generate resource table for split ''
d:\b4a-additional-libraries\customlibsres\afollestad_material-dialogs\res\values-v11\styles.xml:16: error: Error: No resource found that matches the given name (at 'android:actionModeCloseDrawable' with value '@drawable/abc_ic_ab_back_mtrl_am_alpha').

Otherwise everything fine.

Any hint to avoid this error ?
 
Upvote 0
Top