2017-10-25 2 views
0

오늘 Android Studio를 ver로 업데이트했습니다. 3.0 및 그 이후 나는 레이아웃 편집기에서 오류가 발생합니다 :Android Studio 3.0 렌더링 오류로 업그레이드

enter image description here

이 내 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에서

내가 변경했다 더 많은 렌더링 오류. 다른 사람들이이 문제를 어떻게 해결했는지에 대해 듣고 싶습니다.

+0

그럼 선형 패딩은 선형 패딩이 없습니까? – Xenolion

답변

1

android:layout_alignParentLeft 속성은 View의 부모가 RelativeLayout 인 경우에만 유효합니다. (적어도 미리보기 창 측면에서)

enter image description here

안드로이드 스튜디오 3.0 오류로이 업그레이드 된 것 같다 : 안드로이드 스튜디오 2.3에서, 이것은 단지 경고했다. 그냥이 속성을 삭제하십시오. 어쨌든 아무것도하지 않습니다.

+0

나는 이미 그렇게했지만 돕지 않았다. 해결책은 무엇입니까? – Josef

관련 문제