<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">AppicationName</string>
<style name="SpinnerStyle" parent="@android:style/Theme.Translucent.NoTitleBar">
<item name="android:windowFrame">@null</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowIsFloating">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowTitleStyle">@null</item>
<item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item>
<item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
<item name="android:backgroundDimEnabled">false</item>
<item name="android:background">@android:color/transparent</item>
</style>
</resources>
Android aapt started to show me the following error messages.
android_res\values\strings.xml:7: error: Resource does not already exist in overlay at 'SpinnerStyle'; use <add-resource> to add.
android_res\values\strings.xml:8: error: Resource at SpinnerStyle appears in overlay but not in the base package; use <add-resource> to add.
...
Error running aapt.exe (1)
Here is how to use <add-resource> tag.
To fix this thy need to add
<add-resource type="style" name="SpinnerStyle"></add-resource>
This might help someone coming here for the same issue..
ReplyDeleteAdd the line - "LOCAL_AAPT_FLAGS := --auto-add-overlay" to your Android.mk file no need to change your xml file
thanks, it worked!
Deletecan u please tell the path wehere we have to paste it and how
Deletecan u please tell the path wehere we have to paste it and how
DeleteIn the project which got the error, you can find in log.
DeleteI think
This comment has been removed by the author.
ReplyDelete