android.my 프로젝트 API 레벨 25의 새로운 기능입니다. 프로젝트를 실행할 때 BUILD SUCCESSFUL..
을 표시하지만 2 초 후에 앱이 중지되었습니다.라이브러리는 정확히 동일한 버전 사양을 사용해야합니다.
여기 내 Gradle을이다 :
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.opent.fusedlocationproviderapp"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}}
dependencies
{
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:support-compat:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services:11.0.4'
}
apply plugin: 'com.google.gms.google-services'
.................................. ........................
을 라인
컴파일 '에 제안을 얻고있다 com.android.support:support- compat : 25.3.1 '
모든 com.android.support 라이브러리는 정확히 동일한 버전 사양을 사용해야합니다 (혼합 버전은 런타임 충돌을 초래할 수 있음). 발견 된 버전 s 25.3.1, 25.2.0. 예제 inculde com.android.support:25.3.1 com.android.support:animated-vector-drwabale:25.2.0.
내가 Gradle에서해야 할 변경 사항은 무엇입니까?
'com.android.support:support-compat:25.3.1' 'com.android.support:support-compat:25.0.1' –
'com.android.support : support-compat : 25.0.2 ' –
충돌 로그를 표시하십시오. 어쩌면 그건 왜 추락하지 않는거야? – Shark