오늘 Android Studio를 ver로 업데이트했습니다. 3.0 및 그 이후 나는 레이아웃 편집기에서 오류가 발생합니다 :Android Studio 3.0 렌더링 오류로 업그레이드
이 내 Gradle을 파일은 다음과 같습니다
apply plugin: 'com.android.application'
android {
def version = "2.4"
def milestone = "1"
def build = "5"
def name = "WOMS" + "v" + version
compileSdkVersion 23
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "hr.aprox_it.womsmobile"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
applicationVariants.all { variant ->
appendVersionName(variant, defaultConfig)
}
}
}
sourceSets { main { java.srcDirs = ['src/main/java', 'src/main/java/2'] } }
}
def appendVersionName(variant, defaultConfig) {
variant.outputs.each { output ->
if (output.zipAlign) {
//def file = output.outputFile
//def fileName = file.name.replace("app-debug.apk", "WomsMobile-" + defaultConfig.versionName + "v.apk")
//output.outputFile = new File(file.parent, fileName)
}
//def file = output.packageApplication.outputFile
//def fileName = file.name.replace("app-debug.apk", "WomsMobile-" + defaultConfig.versionName + "v.apk")
//output.packageApplication.outputFile = new File(file.parent, fileName)
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:23.4.0'
testCompile 'junit:junit:4.12'
}
아무도이 문제에 직면합니까? Android Studio 및 SDK를 업데이트 할 때마다 오래된 프로젝트에 문제가있는 것으로 보입니다.
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
에 그 해결 문제는 ... 제 생각 엔 ... 더 어떤 없습니다 :
UPDATE styles.xml에서
내가 변경했다 더 많은 렌더링 오류. 다른 사람들이이 문제를 어떻게 해결했는지에 대해 듣고 싶습니다.
그럼 선형 패딩은 선형 패딩이 없습니까? – Xenolion