Android resource linking failed

Product:

Product Version: 9.1.1

Please give a brief summary of your issue:

ERROR:C:\Users\pawan.verma.gradle\caches\transforms-3\e5587459df79bd4115447570a8524e55\transformed\jetified-tools-9.1.1\res\layout\tools_dialog_digital_signature_user_input.xml:135: AAPT: error: attribute hintTextColor (aka com.mw.m****bs**g:hintTextColor) not found.

Please describe your issue and provide steps to reproduce it:

When rebuild the project after adding integration steps.
Issue occurs on add " implementation ‘com.pdftron:tools:9.1.1’ " this line.

(The more descriptive your answer, the faster we are able to help you)

Please provide a link to a minimal sample where the issue is reproducible:

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hi,

Thanks for contacting us.
The hintTextColor is part of the android material design package and this issue can be in result of different package versions. PDFTron SDK is using the version below:

implementation "com.google.android.material:material:1.4.0"

Could you please check the version of your project and let us know?

Best regards,
Saeed Bazzaz

Hi Saeed Bazzaz,

Thanks for reply.

I tried with new separate project in which we have dependencies of version ‘1.1.0’

implementation ‘androidx.appcompat:appcompat:1.1.0’
implementation ‘com.google.android.material:material:1.1.0’

its working fine in new project but getting issue in existing project in which we want integrate.

Thanks-
Pawan

Hi Pawan,

This is a very typical issue with Android dependency mismatch.

In this case, 1.4.0 is needed, so you need the following in your Gradle:

configurations.all {
        resolutionStrategy.force "com.google.android.material:material:1.4.0"
    }

What this does is it will make all library using this specific version so you don’t end up with strange errors.

Could you please look into updating your Gradle and try again? Thanks.