Android Studio project has stopped building. Error retrieving parent for item: android:TextAppearance.Material.Widget.Button.Inverse -


i have been working on project past 2 years of have moved android studio since last 1 year(i using android studio 1.5.1 currently). today when opened project run got error retrieving parent item: android:textappearance.material.widget.button.inverse , android:widget.materialbutton.colored errors. following app.gradle file:

import org.apache.tools.ant.taskdefs.condition.os  apply plugin: 'com.android.application'  android {     compilesdkversion 22     buildtoolsversion "22.0.1"      defaultconfig {         applicationid "com.opaxlabs.boatbrat"         minsdkversion 14         targetsdkversion 22         versioncode 20         versionname '2.0'         multidexenabled true //        ndk { //            modulename "password" //            abifilter "all" //        }     }      packagingoptions {         exclude 'meta-inf/dependencies.txt'         exclude 'meta-inf/license.txt'         exclude 'meta-inf/notice.txt'         exclude 'meta-inf/notice'         exclude 'meta-inf/license'         exclude 'meta-inf/dependencies'         exclude 'meta-inf/notice.txt'         exclude 'meta-inf/license.txt'         exclude 'meta-inf/dependencies.txt'         exclude 'meta-inf/lgpl2.1'     }      dexoptions{         predexlibraries = false     }      buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     }  //    sourcesets.main.jni.srcdirs = [] // disable automatic ndk-build call, ignore our android.mk //    sourcesets.main.jnilibs.srcdir 'src/main/libs' // //    // call regular ndk-build(.cmd) script app directory //    task ndkbuild(type: exec) { //        workingdir file('src/main') //        commandline getndkbuildcmd() //    } // //    tasks.withtype(javacompile) { //        compiletask -> compiletask.dependson ndkbuild //    } // //    task cleannative(type: exec) { //        workingdir file('src/main') //        commandline getndkbuildcmd(), 'clean' //    } // //    clean.dependson cleannative  //    splits { //        abi { //            enable true //            reset() //            include 'x86', 'armeabi-v7a', 'mips' //            universalapk true //        } //    } }  //repositories { //    jcenter() //    maven { url "http://dl.bintray.com/webactive/maven" } //}  //def getndkdir() { //    if (system.env.android_ndk_root != null) //        return system.env.android_ndk_root // //    properties properties = new properties() //    properties.load(project.rootproject.file('local.properties').newdatainputstream()) //    def ndkdir = properties.getproperty('ndk.dir', null) //    if (ndkdir == null) //        throw new gradleexception("ndk location not found. define location ndk.dir in local.properties file or android_ndk_root environment variable.") // //    return ndkdir //} // //def getndkbuildcmd() { //    def ndkbuild = getndkdir() + "/ndk-build" //    if (os.isfamily(os.family_windows)) //        ndkbuild += ".cmd" // //    return ndkbuild //}  repositories {     jcenter()     maven { url "http://dl.bintray.com/webactive/maven" } }  dependencies {     compile 'com.android.support:multidex:1.0.0' //    compile 'com.android.support:support-v4:+'     compile 'com.google.android.gms:play-services:+' //                { //            exclude module: 'play-services-analytics' //        } //        compile ('com.google.android.gms:play-services-analytics:7.3.0')     compile 'com.android.support:appcompat-v7:22.+' //    compile 'com.stripe:stripe-android:+' //    compile files('libs/paypal_mpl.jar')     compile files('libs/cwac-adapter-1.0.2.jar')     compile files('libs/devsmartlib.jar')     compile files('libs/fluent-hc-4.3.3.jar')     compile files('libs/httpasyncclient-4.0.1.jar')     compile files('libs/httpasyncclient-cache-4.0.1.jar')     compile files('libs/httpclient-4.3.2.jar')     compile files('libs/httpclient-cache-4.3.1.jar')     compile files('libs/httpcore-4.3.2.jar')     compile files('libs/httpmime-4.3.3.jar')     compile files('libs/universal-image-loader-1.9.2-with-sources.jar')     compile files('libs/endless-1.2.3.jar')     compile files('libs/jncryptor-1.2.0.jar')     compile files('libs/commons-codec-1.7-snapshot-android.jar')     compile 'com.eway.payment:android-sdk:1.1' } 

i using lower version build tools project has lot of code deprecated , using later tools , sdk might complicate problem. tried build version 23 did not help. tried following: this , this saying things have done. appreciated. in advance.

since using

compile 'com.google.android.gms:play-services:+' 

you using latest version compile 'com.google.android.gms:play-services:8.4.0' has dependency support libraries v23.

you have compile api 23.

change line:

 compilesdkversion 23 

in general not practice use of + in dependencies because can't replicate build in future same libraries , don't know version using.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -