sumup / sumup-android-sdk

Sample App for the SumUp Android SDK
Other
100 stars 28 forks source link

"resource style/Widget.AppCompat.TextView not found" after applying 3.4.0 #175

Closed kphamthn closed 2 years ago

kphamthn commented 2 years ago

We have implemented a capacitor plugin for our app to interact with SumUp. The plugin worked nicely until version 3.3.0. After using the 3.4.0 SDK we received this error while building

Android resource linking failed
ERROR:: AAPT: error: resource style/Widget.AppCompat.TextView not found.
error: failed linking references.

We have checked the requirements: Our minSDKVersion is 21, targetSDKVersion is 30, AppCompat version is 1.2.0, Gradle version 4.1.1. If we downgrade the SDK version to 3.3.0, it works again.

What might the problem be?

kphamthn commented 2 years ago

I have figured this out: We have an old unused cordova plugin that set the appcompat depedency to 1.0.0 compared to the required 1.2.0 from SumUp SDK v.3.4.0 , Removing this plugin solved the problem.

This issue can be closed.