[英]Android Studio Render Errors
我在android studio 3.1.3中啟動了一個項目,當我想在活動設計面板中進行設計時,出現了問題! 下圖: 渲染錯誤
這是我的gradle(Module:app)代碼:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.mohammad.myapplication"
minSdkVersion 14
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:design:28.0.0-alpha3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
我認為這可能會有所幫助:在我的Sdk文件夾中,在build-tools文件夾中,有兩個文件夾28.0.1&27.0.3
更新:
我嘗試了這些,卻一無所獲:
將implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
更改為implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.