android studio - Error: ':' is not a valid resource name character -
i have imported eclipse project android studio.i googled not getting right answer. these errors occurred-
d:\***\app\src\main\res\values\strings.xml error:error: ':' not valid resource name character :app:mergedebugresources failed error:execution failed task ':app:mergedebugresources'. > d:\****\app\src\main\res\values\strings.xml: error: ':' not valid resource name character
my bulid gradle app code is
apply plugin: 'com.android.application' android { compilesdkversion 23 buildtoolsversion "23.0.2" defaultconfig { applicationid "com.******.***" minsdkversion 21 targetsdkversion 22 multidexenabled true } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } repositories { mavencentral() } dependencies { compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:design:23.1.1' compile 'com.android.support:support-v4:23.1.1' compile 'com.google.android.gms:play-services:+' compile files('libs/httpmime-4.1.1.jar') compile files('libs/ormlite-android-4.43.jar') compile files('libs/ormlite-core-4.43.jar') }
please resolve issue. thank you
error: ':' not valid resource name character
means have resource name like
<string name="not:valid">foobar</string>
but colon not allowed.
try this:
open
string.xml
type ctrl + f (on win/linux)
check regex , search
"[a-za-z_]*:[a-za-z_]*"
remove colon , if necessary replace underscore
_
compile
apk
Comments
Post a Comment