从sdk 23降级到22 android

Jon*_*vic 2 sdk android compiler-errors build version

我决定将api级别从23降低到22.首先,我下载了安装了最新23 API的android studio.我现在安装了22 API,但我不知道是否安装了其他类似的东西:

compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.android.support:design:22.2.0'
Run Code Online (Sandbox Code Playgroud)

如果安装了这些,无法找到它们的位置......所以这就是我的清单的样子:

 apply plugin: 'com.android.application'

android {
compileSdkVersion 22 //changed this, used to be 23
buildToolsVersion "22.0.0" //changed this also, but I don't know if it's installed....

defaultConfig {
    applicationId "xxx"
    minSdkVersion 16
    targetSdkVersion 22
    versionCode 11
    versionName "2.0"
    multiDexEnabled true
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
sourceSets { main { java.srcDirs = ['src/main/java', 'libs'] } }
}

repositories {
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile('com.twitter.sdk.android:tweet-composer:1.0.2@aar') {
    transitive = true;
}
compile 'com.android.support:multidex:1.0.0'
compile 'com.android.support:appcompat-v7:22.2.0'//changed this also, but I don't know if it's installed....
compile 'com.android.support:design:22.2.0'//changed this also, but I don't know if it's installed....
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.facebook.android:facebook-android-sdk:4.+'
compile 'com.google.android.gms:play-services-identity:8.4.0'
}
Run Code Online (Sandbox Code Playgroud)

所以,当我尝试同步它给我这个废话:

C:\ Users\jonathan\AndroidStudioProjects\TrashOmeter\app\build\intermediates\res\merged\debug\values-v23\values-v23.xml错误:(18)检索项目的父项时出错:找不到与给定项匹配的资源名字'android:Widget.Material.Button.Colored'.错误:(3)检索项目的父项时出错:找不到与给定名称"android:TextAppearance.Material.Widget.Button.Inverse"匹配的资源.错误:任务':app:processDebugResources'的执行失败.

com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:处理'命令'C:\ Users\jonathan\AppData\Local\Android\sdk\build-tools\22.0.0\aapt .exe''以非零退出值1结束

在此输入图像描述

在此输入图像描述

如何正确编译22 sdk ???

Ada*_*dam 6

如果已经在谷歌播放上传了你的apk(sdk 23),你将无法从SDK 23降级到22.商店不会让你.

我已经犯了这个错误,现在我的APP与我没有犯过这个错误的竞争对手相比处于不利地位.

所以不要使用SDK 23,它会让你的用户生气,如果他们必须为你的应用程序启用LOCATION(访问wifi频道列表是我的应用程序的主要目的)