triniwiz / nativescript-downloader

Apache License 2.0
32 stars 18 forks source link

Failed to build plugin nativescript-downloader #26

Closed FranciZ closed 5 years ago

FranciZ commented 5 years ago

When trying to run (tns run android) for Android it now fails with the below error.

 Error is: Failed to build plugin nativescript-downloader : 
Error: Command ./gradlew failed with exit code 1 Error output: 
 /Users/francizidar/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/1083f0fe79e4573cfc4259d050611981/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

  1. Create a new project tns create my-app --ng.
  2. Add the plugin.
  3. Build.
  4. The below error appears.

Without the plugin the app works.

 Error is: Failed to build plugin nativescript-downloader : 
Error: Command ./gradlew failed with exit code 1 Error output: 
 /Users/francizidar/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/1083f0fe79e4573cfc4259d050611981/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
FranciZ commented 5 years ago

Narrowed it down the below latest commit on fancydownloader repo. Using the version co.fitcom:fancydownloader:0.6.1 resolves the problem.

https://github.com/triniwiz/fancydownloader/commit/e434067309850baa1fc7558bd7e74b505c9cfb35

Also, I have version 28 of the SDK and tools installed.