triniwiz / nativescript-downloader

Apache License 2.0
32 stars 18 forks source link

Build fails on TNS 4.0.0 #12

Closed caiusCitiriga closed 6 years ago

caiusCitiriga commented 6 years ago

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.

Create a new Nativescript Angular project. Install the plugin. Build it.

Is there any code involved?

No code involved.

Error stack:

Successfully prepared plugin nativescript-angular for android.
Successfully prepared plugin nativescript-downloader for android.
Successfully prepared plugin nativescript-theme-core for android.
Successfully prepared plugin tns-core-modules for android.
Successfully prepared plugin nativescript-intl for android.
Successfully prepared plugin tns-core-modules-widgets for android.
Unable to apply changes on device: 5534a874. Error is: Failed to build plugin nativescript-downloader :
Error: Command failed: ./gradlew -p /Users/caiuscitiriga/Code/Hoodify/test/platforms/tempPlugin/nativescript_downloader assembleRelease -PcompileSdk=android-25 -PbuildToolsVersion=26.0.2 -PsupportVersion=25.3.1
/Users/caiuscitiriga/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/97284bfc98005e4119fc714835c26a99/res/values-v26/values-v26.xml:9:5-12:13: AAPT: resource android:attr/colorError not found.

/Users/caiuscitiriga/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/97284bfc98005e4119fc714835c26a99/res/values-v26/values-v26.xml:13:5-16:13: AAPT: resource android:attr/colorError not found.

/Users/caiuscitiriga/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/97284bfc98005e4119fc714835c26a99/res/values-v26/values-v26.xml:17:5-93: AAPT: style attribute 'android:attr/keyboardNavigationCluster' not found.

/Users/caiuscitiriga/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/97284bfc98005e4119fc714835c26a99/res/values/values.xml:251:5-69: AAPT: resource android:attr/fontStyle not found.

/Users/caiuscitiriga/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/97284bfc98005e4119fc714835c26a99/res/values/values.xml:251:5-69: AAPT: resource android:attr/font not found.

/Users/caiuscitiriga/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/97284bfc98005e4119fc714835c26a99/res/values/values.xml:251:5-69: AAPT: resource android:attr/fontWeight not found.

/Users/caiuscitiriga/Code/Hoodify/test/platforms/tempPlugin/nativescript_downloader/build/intermediates/res/merged/release/values-v26/values-v26.xml:7: error: resource android:attr/colorError not found.
/Users/caiuscitiriga/Code/Hoodify/test/platforms/tempPlugin/nativescript_downloader/build/intermediates/res/merged/release/values-v26/values-v26.xml:11: error: resource android:attr/colorError not found.
/Users/caiuscitiriga/Code/Hoodify/test/platforms/tempPlugin/nativescript_downloader/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
/Users/caiuscitiriga/Code/Hoodify/test/platforms/tempPlugin/nativescript_downloader/build/intermediates/res/merged/release/values/values.xml:225: error: resource android:attr/fontStyle not found.
/Users/caiuscitiriga/Code/Hoodify/test/platforms/tempPlugin/nativescript_downloader/build/intermediates/res/merged/release/values/values.xml:225: error: resource android:attr/font not found.
/Users/caiuscitiriga/Code/Hoodify/test/platforms/tempPlugin/nativescript_downloader/build/intermediates/res/merged/release/values/values.xml:225: error: resource android:attr/fontWeight not found.
error: failed linking references.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':verifyReleaseResources'.
> 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s
triniwiz commented 6 years ago

Can you try the options in https://github.com/triniwiz/nativescript-downloader/issues/10

caiusCitiriga commented 6 years ago

@triniwiz I've tried the 2 options you've suggested, but unfortunately without any success. The error stays the same. To be sure I've tried to install the module on a fresh Angular application, to avoid any custom modules conflicts. And the error keeps persisting. Any suggestions? Or even temporary workaround?

triniwiz commented 6 years ago

I’ll need to test it with 4.0

caiusCitiriga commented 6 years ago

No problem! I'll wait for a feedback from you. Until then I'll fall back to the nativesctipt http module :)

yogeshpatil143 commented 6 years ago

Hey, You just install android SDK version 26,27 in AndroidSDK path in windows.

Also just apply command for same

tns platform clean android in cmd of windows. AND Try to build android using command prompt.

Thanks, Yogesh Patil

shinde-sagar commented 5 years ago

capture

Hello All, Getting same issue. Even after removed platform and added it again same issue facing. How we can overcome from these issue

triniwiz commented 5 years ago

@shinde-sagar you need to remove node_modules , platforms , package-lock.json

shinde-sagar commented 5 years ago

I try but getting same issue