Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi mate! Error in parsing "g/" #3

Closed
iRYO400 opened this issue Jan 29, 2016 · 10 comments
Closed

Hi mate! Error in parsing "g/" #3

iRYO400 opened this issue Jan 29, 2016 · 10 comments

Comments

@iRYO400
Copy link

iRYO400 commented Jan 29, 2016

After syncing gradle, I get this error:
Error:Execution failed for task ':app:mergeDebugResources'.

J:\Workspace_V3\FlashFire\app\build\intermediates\exploded-aar\it.michelelacorte.elasticprogressbar\library\1.0.5\res\drawable\vd_start.xml: Error: error in parsing "g/"

I dunno what is it

@iRYO400
Copy link
Author

iRYO400 commented Jan 29, 2016

Help!

@michelelacorte
Copy link
Owner

Please tell me that API uses and how are you using the library

@iRYO400
Copy link
Author

iRYO400 commented Jan 30, 2016

I use Android Studio 1.5.3
Library connected via both ways:

  1. compile 'it.michelelacorte.elasticprogressbar:library:1.0.5'
allprojects {
    repositories {
        maven { url "https://dl.bintray.com/michelelacorte/maven/" }
        jcenter()
        mavenCentral()

    }
}
compile  'it.michelelacorte.elasticprogressbar:library:1.0.5@aar'

I tested it in a new Blank and in my Main projects. And get the same error

@michelelacorte
Copy link
Owner

replace your build.gradle (app) with:

apply plugin: 'com.android.application'

allprojects {
    repositories {
        maven { url "https://dl.bintray.com/michelelacorte/maven/" }
        jcenter()
        mavenCentral()

    }
}
android {
    compileSdkVersion 23
    buildToolsVersion '23.0.2'
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
   //other dependencies
    compile  'it.michelelacorte.elasticprogressbar:library:1.0.5@aar'
}

Or just add in dependencies:

compile 'it.michelelacorte.elasticprogressbar:library:1.0.5'

@iRYO400
Copy link
Author

iRYO400 commented Jan 30, 2016

It still get error

Error:Error: error in parsing "g/"
:app:mergeDebugResources FAILED
Error:Execution failed for task ':app:mergeDebugResources'.
> J:\Workspace_V3\ElasticTest\app\build\intermediates\exploded-aar\it.michelelacorte.elasticprogressbar\library\1.0.5\res\drawable\vd_start.xml: Error: error in parsing "g/"

@michelelacorte
Copy link
Owner

It's look strange...Please contact me by e-mail: micky1995g@gmail.com

@michelelacorte
Copy link
Owner

You have to add on defaultConfig tag in your build.gradle this line:

generatedDensities = []

@iRYO400
Copy link
Author

iRYO400 commented Jan 30, 2016

Solved! Thanks again!

@michelelacorte
Copy link
Owner

Close and add in README file! Thanks for reporting

michelelacorte added a commit that referenced this issue Jan 30, 2016
Added ways to solve issue #3
@AshishPsaini
Copy link

vectorDrawables.useSupportLibrary = true is missing in defaultConfig { } .
Please add below lines in build.gradle in defualt config .

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

}

or

vectorDrawables.useSupportLibrary = true in defaultConfig { } block in build.gradle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants