NativeScript / nativescript-background-http

Background Upload plugin for the NativeScript framework
Apache License 2.0
101 stars 50 forks source link

Android Gradle build fail #174

Closed alexandrmiee closed 5 years ago

alexandrmiee commented 5 years ago

tns 4.2.4

tns run android --bundle --syncAllFiles

Gradle build...
         + setting applicationId
         + applying user-defined configuration from C:\NodeJs\taxi\app\App_Resources\Android\app.gradle
         + adding nativescript runtime package dependency: nativescript-optimized-with-inspector
         + adding aar plugin dependency: C:\NodeJs\taxi\node_modules\nativescript-background-http\platforms\android\nativescript_background_http.aar
         + adding aar plugin dependency: C:\NodeJs\taxi\node_modules\nativescript-camera\platforms\android\nativescript_camera.aar
         + adding aar plugin dependency: C:\NodeJs\taxi\node_modules\nativescript-photoviewer\platforms\android\nativescript_photoviewer.aar
         + adding aar plugin dependency: C:\NodeJs\taxi\node_modules\nativescript-socket.io\platforms\android\nativescript_socket.io.aar
         + adding aar plugin dependency: C:\NodeJs\taxi\node_modules\tns-core-modules-widgets\platforms\android\widgets-release.aar
C:\Users\home\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.2.aar\45e8896adcac0d7b6b0faefd8326a7a4\res\values-v26\values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.

C:\Users\home\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.2.aar\45e8896adcac0d7b6b0faefd8326a7a4\res\values-v26\values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.

C:\Users\home\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.2.aar\45e8896adcac0d7b6b0faefd8326a7a4\res\values-v26\values-v26.xml:17:5-93: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.

C:\Users\home\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.2.aar\45e8896adcac0d7b6b0faefd8326a7a4\res\values\values.xml:252:5-69: AAPT: error: resource android:attr/fontStyle not found.

C:\Users\home\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.2.aar\45e8896adcac0d7b6b0faefd8326a7a4\res\values\values.xml:252:5-69: AAPT: error: resource android:attr/font not found.

C:\Users\home\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.2.aar\45e8896adcac0d7b6b0faefd8326a7a4\res\values\values.xml:252:5-69: AAPT: error: resource android:attr/fontWeight not found.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Failed to process resources, see aapt output above for details.

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

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

BUILD FAILED in 2s
Unable to apply changes on device: 192.168.1.34:5555. Error is: Command gradlew.bat failed with exit code 1.
Erwol commented 5 years ago

Happening to me also when using NS+Vue 2

Erwol commented 5 years ago

https://github.com/NativeScript/nativescript-background-http/issues/169

Erwol commented 5 years ago

@alexandrmiee solution is:

zbranzov commented 5 years ago

I'll consider the issue as resolved due to provided resolution by @Erwol