vector-compat icon indicating copy to clipboard operation
vector-compat copied to clipboard

When I use 1.0.5, my project build error

Open wikison opened this issue 10 years ago • 4 comments

D:\workspace\CoCoin\app\build\intermediates\exploded-aar\com.wnafee\vector-compat\1.0.5\res\drawable\ic_arrow_vector.xml :app:mergeDebugResources FAILED Error:Execution failed for task ':app:mergeDebugResources'.

D:\workspace\CoCoin\app\build\intermediates\exploded-aar\com.wnafee\vector-compat\1.0.5\res\drawable\ic_arrow_vector.xml: Error: error in parsing "g/"

What can I do to make my project correct? Thanks.

wikison avatar Jan 15 '16 02:01 wikison

Same problem here.

diogojg avatar Jan 16 '16 17:01 diogojg

I have the same problem. Are u working on that?

stepansanda avatar Jan 18 '16 13:01 stepansanda

Guys, read first: #30 #24

zayo avatar Jan 21 '16 22:01 zayo

vectorDrawables.useSupportLibrary = true is missing . Please add this line in defaultConfig {} in build.gradle file

for eg.

apply plugin: 'com.android.library'

android { compileSdkVersion 22 buildToolsVersion "22.0.1"

lintOptions {
    abortOnError false
}

defaultConfig {
    minSdkVersion 14
    targetSdkVersion 22
    versionCode 1
    versionName "1.0"
    vectorDrawables.useSupportLibrary = true

}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.1.1' }

AshishPsaini avatar Nov 10 '16 10:11 AshishPsaini