본문 바로가기

Android Studio

(Android Studio) This app has been built with an incorrect configuration. 해결법

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

출처 : http://programcode.tistory.com/entry/XFile-5


gradle : APP 에 추가


defaultConfig { 

....


generatedDensities = []

}



aaptOptions {

    additionalParameters "--no-version-vectors"

}


최종 build.gradle는 아래와 같다.

apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion "24.0.3"

defaultConfig {
applicationId "com.myapplication"
minSdkVersion 14
targetSdkVersion 24
versionCode 1
versionName "1.0000"

generatedDensities = []
}

aaptOptions {
additionalParameters "--no-version-vectors"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
}



출처: http://programcode.tistory.com/entry/XFile-5 [프로그램코드]