nstudio / nativescript-cardview

:diamonds: :clubs: NativeScript widget for Material Design CardView
MIT License
282 stars 51 forks source link

Unable to build after installing nativescript-cardview (Error retrieving parent for item 'android:TextAppearance.Material.Widget.Button.Borderless.Colored') #66

Closed tonyawad88 closed 7 years ago

tonyawad88 commented 7 years ago

Hello,

After installing the nativescript-cardview plugin, I ran tns run android and started having the following problems. I removed the android platform and re-added it but it made no difference.

Any idea why this might be happening?

...MY_PROJECT...\platforms\android\build\intermediates\res\merged\F0F1\debug\values-v24\values-v24.xml:3: AAPT: Error retrieving parent for item: No resou
rce found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

...MY_PROJECT...\platforms\android\build\intermediates\res\merged\F0F1\debug\values-v24\values-v24.xml:4: AAPT: Error retrieving parent for item: No resou
rce found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

...MY_PROJECT...\platforms\android\build\intermediates\res\merged\F0F1\debug\values-v24\values-v24.xml:3: error: Error retrieving parent for item: No reso
urce found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

...MY_PROJECT...\platforms\android\build\intermediates\res\merged\F0F1\debug\values-v24\values-v24.xml:4: error: Error retrieving parent for item: No reso
urce found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

:processF0F1DebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processF0F1DebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
bradmartin commented 7 years ago

This is typically an android lib conflict during the android build. Removing platforms, updating dependencies and adding the platform with a fresh build typically resolve.