NativeScript / android

NativeScript for Android using v8
https://docs.nativescript.org/guide/android-marshalling
Apache License 2.0
518 stars 136 forks source link

Error 8.6.0 #1791

Closed vallemar closed 9 months ago

vallemar commented 9 months ago

Error in 8.6.0

Execution failed for task ':app:processDebugResources'.
Android resource linking failed
ERROR:/Users/vallemar/workspaces/test/nativescript-vue-tresjs/platforms/android/app/src/debug/res/layout/exception_tab.xml:55: AAPT: error: resource drawable/button_accented (aka org.nativescript.nativescriptvuetresjs:drawable/button_accented) not found.

ERROR:/Users/vallemar/workspaces/test/nativescript-vue-tresjs/platforms/android/app/src/debug/res/layout/exception_tab.xml:65: AAPT: error: resource drawable/button (aka org.nativescript.nativescriptvuetresjs:drawable/button) not found.

ERROR:/Users/vallemar/workspaces/test/nativescript-vue-tresjs/platforms/android/app/src/debug/res/layout/logcat_tab.xml:36: AAPT: error: resource drawable/button (aka org.nativescript.nativescriptvuetresjs:drawable/button) not found.

My package.json

{
  "name": "nativescript-vue-tresjs",
  "main": "src/app.ts",
  "version": "1.0.0",
  "private": true,
  "dependencies": {
    "@nativescript/canvas-polyfill": "^1.1.0",
    "@nativescript/core": "8.6.0",
    "nativescript-vue": "3.0.0-beta.10"
  },
  "devDependencies": {
    "@nativescript/android": "8.6.0",
    "@nativescript/tailwind": "^2.0.1",
    "@nativescript/types": "~8.5.0",
    "@nativescript/webpack": "~5.0.0",
    "@types/node": "~17.0.21",
    "tailwindcss": "^3.1.8",
    "typescript": "^5.2.2"
  }
}
rigor789 commented 9 months ago

~Should be fixed in 8.6.1~

~https://github.com/NativeScript/android/releases/tag/v8.6.1~

Edit: nevermind, looks like it's still being overriden by contents from App_Resources.

@ammarahm-ed can we inline button and button_accented styles?

ammarahm-ed commented 9 months ago

~Should be fixed in 8.6.1~

~https://github.com/NativeScript/android/releases/tag/v8.6.1~

Edit: nevermind, looks like it's still being overriden by contents from App_Resources.

@ammarahm-ed can we inline button and button_accented styles?

I'll take a look, i think it should be possible. Another solution is to ensure the necessary files are in the App_Resources folder when you run ns prepare or ns run and copy them if they are missing.

vallemar commented 9 months ago

Working fine in 8.6.2.

Thanks!!

rigor789 commented 9 months ago

@ammarahm-ed we moved them to debug resources, seems to be ok too.