You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my app I've added my own styles.xml in app/App_Resources/Android/values (note that I've created values dir manually).
Android build is failing with the following error:
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[aapt] d:\Work\nativescript-cli\scratch\myApp\platforms\android\bin\AndroidManifest.xml:21: error: Error: No resource found that matches the given name (at 'label' with value '@string/app_name').
[aapt]
[aapt] d:\Work\nativescript-cli\scratch\myApp\platforms\android\bin\AndroidManifest.xml:27: error: Error: No resource found that matches the given name (at 'label' with value '@string/title_activity_kimera').
[aapt]
BUILD FAILED
d:\Program Files\android_sdk\tools\ant\build.xml:649: The following error occurred while executing this line:
d:\Program Files\android_sdk\tools\ant\build.xml:694: null returned: 1
Total time: 1 second
Command C:\WINDOWS\system32\cmd.exe failed with exit code 1
The build is failing with latest {N} CLI, but it was working with previous versions.
Steps to reproduce
Create new application: tns create myApp
Navigate to the app/App_Resources/Android directory
Create values directory
Inside values directory create new styles.xml file with the following content:
Add android platform to myApp: tns platform add android
At this point you can check platforms/android/res/values directory - you will notice that there are two files - styles.xml and strings.xml - they are created from default template.
Try building the project tns build android - the build will fail
Check platforms/android/res/values again - it contains only your styles.xml file. The build is failing as there's no strings.xml file.
Workaround
In your own values dir, you can put strings.xml file (after tns platform add android you can take the original strings.xml from platforms/android/res/values directory and place it in app/App_Resources/Android/values directory.
The text was updated successfully, but these errors were encountered:
Issue
In my app I've added my own styles.xml in
app/App_Resources/Android/values
(note that I've created values dir manually).Android build is failing with the following error:
The build is failing with latest {N} CLI, but it was working with previous versions.
Steps to reproduce
tns create myApp
values
directoryvalues
directory create new styles.xml file with the following content:myApp
:tns platform add android
platforms/android/res/values
directory - you will notice that there are two files -styles.xml
andstrings.xml
- they are created from default template.tns build android
- the build will failplatforms/android/res/values
again - it contains only your styles.xml file. The build is failing as there's nostrings.xml
file.Workaround
In your own values dir, you can put strings.xml file (after
tns platform add android
you can take the originalstrings.xml
fromplatforms/android/res/values
directory and place it inapp/App_Resources/Android/values
directory.The text was updated successfully, but these errors were encountered: