Rob*_*bin 9 android gradle android-studio
我试图通过从GitHub检查git来将我的项目推回到以前的版本,但我想我是以错误的方式做到的.我刚刚删除了本地项目并检查了android studio上的git地址.但是,gradle无法构建并显示以下消息:
我导航到说找不到样式attr的行,并选择查找用法,但它表示此项目中没有使用.我也尝试删除了twitter工具包并重新加载它,加载旧的verision,两者都有这个问题.如何解决这个问题?
该项目从一开始就用android studio 3.0 canary构建.这是app gradle文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "..."
minSdkVersion 19
targetSdkVersion 26
versionCode 3
versionName "beta1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testCompile 'junit:junit:4.12'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:support-v4:26.0.0'
compile 'com.android.support:recyclerview-v7:26.0.0'
compile 'com.twitter.sdk.android:twitter:3.1.0'
compile 'com.jakewharton:butterknife:8.7.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.8.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
annotationProcessor 'com.github.bumptech.glide:glide:3.7.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.7.0'
implementation 'com.android.support:appcompat-v7:26.0.0'
implementation 'com.android.support:design:26.0.0'
}
Run Code Online (Sandbox Code Playgroud)
另一个构建文件:
buildscript {
repositories {
jcenter()
maven { url 'https://maven.google.com' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-alpha9'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url 'https://maven.google.com' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Run Code Online (Sandbox Code Playgroud)
这是主题和样式的问题。可能您的某个库希望该样式可用,但没有找到。请参阅此处无法正确设置 Android 操作栏背景作为如何填写可能适合您的特定属性的指南。
根据谷歌在此处的差异https://android.googlesource.com/platform/tools/base/+/f5215ae4712f468568b58c20baadd14b769c10c4%5E!/
更改您的 themes.xml 然后从清单中使用它,或者更改 style.xml 如果操作不当可能会导致这些副作用。
归档时间: |
|
查看次数: |
20053 次 |
最近记录: |