mikepenz / MaterialDrawer

The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.
https://mikepenz.dev
Apache License 2.0
11.68k stars 2.05k forks source link

Update from 3.07 to 4.0.2 #601

Closed mychaelgo closed 9 years ago

mychaelgo commented 9 years ago

I want to update the material library to 4.0.2

but when i sync the gradle file, i get error:

AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027MaterialTheme\u0027.","sources":[{"file":"/Users/mychaelgo/Documents/semonas/Apollo/app/build/intermediates/exploded-aar/com.mikepenz/materialdrawer/4.0.2/res/values/values.xml","position":{"startLine":1}}],"original":""}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027MaterialTheme.ActionBar\u0027.","sources":[{"file":"/Users/mychaelgo/Documents/semonas/Apollo/app/build/intermediates/exploded-aar/com.mikepenz/materialdrawer/4.0.2/res/values/values.xml","position":{"startLine":1}}],"original":""}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027MaterialTheme.ActionBar.TranslucentStatus\u0027.","sources":[{"file":"/Users/mychaelgo/Documents/semonas/Apollo/app/build/intermediates/exploded-aar/com.mikepenz/materialdrawer/4.0.2/res/values/values.xml","position":{"startLine":1}}],"original":""}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027MaterialTheme.Light\u0027.","sources":[{"file":"/Users/mychaelgo/Documents/semonas/Apollo/app/build/intermediates/exploded-aar/com.mikepenz/materialdrawer/4.0.2/res/values/values.xml","position":{"startLine":1}}],"original":""}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027MaterialTheme.Light.ActionBar\u0027.","sources":[{"file":"/Users/mychaelgo/Documents/semonas/Apollo/app/build/intermediates/exploded-aar/com.mikepenz/materialdrawer/4.0.2/res/values/values.xml","position":{"startLine":1}}],"original":""}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027MaterialTheme.Light.ActionBar.TranslucentStatus\u0027.","sources":[{"file":"/Users/mychaelgo/Documents/semonas/Apollo/app/build/intermediates/exploded-aar/com.mikepenz/materialdrawer/4.0.2/res/values/values.xml","position":{"startLine":1}}],"original":""}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027MaterialTheme.Light.DarkToolbar\u0027.","sources":[{"file":"/Users/mychaelgo/Documents/semonas/Apollo/app/build/intermediates/exploded-aar/com.mikepenz/materialdrawer/4.0.2/res/values/values.xml","position":{"startLine":1}}],"original":""}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027MaterialTheme.Light.DarkToolbar.ActionBar\u0027.","sources":[{"file":"/Users/mychaelgo/Documents/semonas/Apollo/app/build/intermediates/exploded-aar/com.mikepenz/materialdrawer/4.0.2/res/values/values.xml","position":{"startLine":1}}],"original":""}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027MaterialTheme.Light.DarkToolbar.ActionBar.TranslucentStatus\u0027.","sources":[{"file":"/Users/mychaelgo/Documents/semonas/Apollo/app/build/intermediates/exploded-aar/com.mikepenz/materialdrawer/4.0.2/res/values/values.xml","position":{"startLine":1}}],"original":""}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027MaterialTheme.Light.DarkToolbar.TranslucentStatus\u0027.","sources":[{"file":"/Users/mychaelgo/Documents/semonas/Apollo/app/build/intermediates/exploded-aar/com.mikepenz/materialdrawer/4.0.2/res/values/values.xml","position":{"startLine":1}}],"original":""}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027MaterialTheme.Light.TranslucentStatus\u0027.","sources":[{"file":"/Users/mychaelgo/Documents/semonas/Apollo/app/build/intermediates/exploded-aar/com.mikepenz/materialdrawer/4.0.2/res/values/values.xml","position":{"startLine":1}}],"original":""}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027MaterialTheme.TranslucentStatus\u0027.","sources":[{"file":"/Users/mychaelgo/Documents/semonas/Apollo/app/build/intermediates/exploded-aar/com.mikepenz/materialdrawer/4.0.2/res/values/values.xml","position":{"startLine":1}}],"original":""}

my build.gradle

dependencies {
    //    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile project(':library')
    compile 'com.github.paolorotolo:appintro:3.2.0'
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.github.navasmdc:MaterialDesign:1.5@aar'
    compile 'com.rengwuxian.materialedittext:library:2.1.4'
    compile 'com.squareup.retrofit:retrofit:1.9.0'
    compile 'com.squareup.okhttp:okhttp:2.4.0'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.mikepenz:iconics-core:1.7.4@aar'
    compile 'com.mikepenz:google-material-typeface:1.2.0.1@aar'
    compile 'com.mikepenz:fontawesome-typeface:4.4.0.1@aar'
    compile 'com.mikepenz:octicons-typeface:3.0.0.1@aar'
    compile 'com.mikepenz:meteocons-typeface:1.1.0.1@aar'
    compile 'com.mikepenz:community-material-typeface:1.1.70.3@aar'
//    compile('com.mikepenz:materialdrawer:3.0.7@aar') {
    compile('com.mikepenz:materialdrawer:4.0.2@aar') {
        transitive = true
        exclude group: 'com.mikepenz'
    }
    compile 'com.android.support:appcompat-v7:23.0.0'
    compile 'com.parse.bolts:bolts-android:1.2.0'
    compile 'com.baoyz.pullrefreshlayout:library:1.0.1'
    compile fileTree(dir: 'libs', include: 'Parse-*.jar')
    //    compile 'com.google.android.gms:play-services:7.5.0'
    compile 'com.google.android.gms:play-services-analytics:7.8.0'
    compile 'com.google.android.gms:play-services-gcm:7.8.0'
    compile 'com.google.android.gms:play-services-maps:7.8.0'
    compile 'com.google.maps.android:android-maps-utils:0.4+'
    //    compile 'com.appeaser.sublimepickerlibrary:sublimepickerlibrary:1.0.0'
    compile 'com.github.dmytrodanylyk.android-process-button:library:1.0.4'
    compile 'com.roomorama:caldroid:2.1.0'
    compile 'joda-time:joda-time:2.1'
    compile 'uk.co.chrisjenx:calligraphy:2.1.0'
    compile 'com.sothree.slidinguppanel:library:3.1.1'
    compile 'com.jpardogo.materialtabstrip:library:1.1.0'

    compile 'com.google.code.gson:gson:2.3'
    compile(name: 'VTAndroidAPI-release', ext: 'aar')
}
mikepenz commented 9 years ago

you use the newest build tools, newest gradle plugin, compile sdk 23? You cleaned the project?

mychaelgo commented 9 years ago

@mikepenz yes, my android studio ver 1.3.2, targetSdkVersion 23, compileSdkVersion 23, buildToolsVersion "23.0.0" and i have cleaned the project

        classpath 'com.android.tools.build:gradle:1.3.0'
mikepenz commented 9 years ago

Clean / Resync / Rebuild did not help?

mychaelgo commented 9 years ago

@mikepenz yeah, i just create new project & same problem

screen shot 2015-08-27 at 7 41 32 pm

mikepenz commented 9 years ago

@mychaelgo oops the

exclude group: 'com.mikepenz'

is the problem. as it also removes a dependency which is required. (https://github.com/mikepenz/Materialize)

If you add:

compile('com.mikepenz:materialize:0.2.0@aar')

it will work.

Else you can modify the exclude to just exclude the Android-Iconics Dependency

mychaelgo commented 9 years ago

@mikepenz ok thank you