개발/안드로이드

apk 오류 : 패키지 구문을 확인 할 수 없습니다.

철권 2018. 9. 6. 09:53
728x90

오늘 개발을 했는데 sdk 최소 버전을 너무 높게 했더니 오류가 나오면서 설치를 하지 못한다.

자신의 스마트폰에 맞게 버전을 바꾸고 다시 apk 생성


apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.landofsky.landofsky"
minSdkVersion 26
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-alpha1'
implementation 'com.google.android.gms:play-services-ads:15.0.1'
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'
}


728x90
반응형