[英]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.