Android Question 2 libraries that want to use different themes error

ac9ts

Active Member
Licensed User
Longtime User
I have an app that uses an older library that uses the AppCompat theme. It's working and life is good. The manifest entry I use is:
B4X:
SetApplicationAttribute(android:theme, "@style/Theme.AppCompat")

and my code:
B4X:
#AdditionalRes: C:\Android\android-sdk\extras\android\support\v7\appcompat\res, android.support.v7.appcompat

I need to add the Runtime Permissions library but it want to use the Holo theme. My target SDK is 22 so (in theory) it shouldn't show the ask for permission prompt so there are no GUI requirements.

When I compile, I get the following errors:
c:\android\android-sdk\extras\android\support\v7\appcompat\res\values\attrs.xml:123: error: Attribute "actionBarSize" already defined with incompatible format.
C:\b4a\Projects\__Released\GAOR\Tests\SDCard\Objects\bin\extra\res1\res\values\values.xml:111: Original attribute defined here.
c:\android\android-sdk\extras\android\support\v7\appcompat\res\values\attrs.xml:398: error: Attribute "navigationMode" already defined with incompatible format.
C:\b4a\Projects\__Released\GAOR\Tests\SDCard\Objects\bin\extra\res1\res\values\values.xml:73: Original attribute defined here.
c:\android\android-sdk\extras\android\support\v7\appcompat\res\values\attrs.xml:407: error: Attribute "displayOptions" already defined with incompatible format.
C:\b4a\Projects\__Released\GAOR\Tests\SDCard\Objects\bin\extra\res1\res\values\values.xml:79: Original attribute defined here.
c:\android\android-sdk\extras\android\support\v7\appcompat\res\values\attrs.xml:524: error: Attribute "backgroundTintMode" already defined with incompatible format.
C:\b4a\Projects\__Released\GAOR\Tests\SDCard\Objects\bin\extra\res1\res\values\values.xml:192: Original attribute defined here.
c:\android\android-sdk\extras\android\support\v7\appcompat\res\values\attrs.xml:640: error: Attribute "showAsAction" already defined with incompatible format.
C:\b4a\Projects\__Released\GAOR\Tests\SDCard\Objects\bin\extra\res1\res\values\values.xml:139: Original attribute defined here.
c:\android\android-sdk\extras\android\support\v7\appcompat\res\values\attrs.xml:775: error: Attribute "showDividers" already defined with incompatible format.
C:\b4a\Projects\__Released\GAOR\Tests\SDCard\Objects\bin\extra\res1\res\values\values.xml:129: Original attribute defined here.
c:\android\android-sdk\extras\android\support\v7\appcompat\res\values\attrs.xml:892: error: Attribute "buttonTintMode" already defined with incompatible format.
C:\b4a\Projects\__Released\GAOR\Tests\SDCard\Objects\bin\extra\res1\res\values\values.xml:117: Original attribute defined here.
]

I'm not sure where to start to correct this or how theming in general works. Any tutorials?
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Use code Tag when Posting code. Or QUOTE Tag when Posting logs

It is an mistake to use Ressources using the newest appcompat lib.
 
Upvote 0

ac9ts

Active Member
Licensed User
Longtime User
I am not using the AppCompat library. I am using the AppCompat theme for a different library that requires it. I want to add a library that seems to want the Holo theme.
 
Upvote 0
Top