API23のビルドを停止するにはどうしたらいいですか?私は多くのライブラリを持っており、API23からAPI22におそらくすべて縮小されています。それでも私は問題を抱えています。私のgradleを同期させたいとき、V23スタイルのエラーを表示しています。Android StudioはAPI23のビルドを防止します。私はAPI22だけを欲しいです
建物V23を無効にする方法はありますか?私はAPI23を使いたくない。私のアプリでAPI23にプロジェクトを更新するように言ってはいけません。私のアプリでは許可のチェックは必要ないからです。社内アプリ(Google Play用ではない)の中にあり、権限ダイアログは不要です。
これはエラー エラーです。(4)アイテムの親を取得中にエラーが発生しました:指定された名前と一致するリソースが見つかりませんでした 'android:TextAppearance.Material.Widget.Button.Inverse'。ここで
は私のGradleファイルです:
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.0"
defaultConfig {
applicationId "com.pongodev.layartancepapp"
minSdkVersion 16
targetSdkVersion 22
versionCode 2
versionName "2.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
jcenter()
maven {
url "https://jitpack.io"
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:recyclerview-v7:22.1.0'
compile('com.mikepenz:materialdrawer:[email protected]') {
transitive = true
}
compile 'com.android.support:support-v4:22.2.1'
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.google.android.gms:play-services:7.3.0'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
testCompile 'junit:junit:4.12'
compile 'com.mcxiaoke.volley:library:1.0.0'
compile 'com.github.mrengineer13:snackbar:1.0.0'
compile 'com.marshalchen.ultimaterecyclerview:library:0.3.18'
compile 'com.lsjwzh:materialloadingprogressbar:0.5.8-RELEASE'
compile 'com.mikepenz:google-material-typeface:[email protected]'
compile 'com.github.AndroidDeveloperLB:MaterialPreferenceLibrary:1'
}
に従ってください?あなたの 'compileSdkVersion'と' targetSdkVersion'は何ですか? – Egor
'targetSdkVersion'を22に設定してください。 –
「API23のための建物」の意味を詳しく説明してください。 – CommonsWare