2017-09-18 1 views
-1

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에서해야 할 변경 사항은 무엇입니까?

+0

'com.android.support:support-compat:25.3.1' 'com.android.support:support-compat:25.0.1' –

+0

'com.android.support : support-compat : 25.0.2 ' –

+0

충돌 로그를 표시하십시오. 어쩌면 그건 왜 추락하지 않는거야? – Shark

답변

0

Google Play 서비스는 이전 버전을 사용하며 지원 라이브러리에 의존하기 때문에 충돌이 발생합니다.

최신 버전입니다 : 당신은 단지 경고 및 그들은 여전히 ​​일할 수있는 의미 버전 differencies 없음 오류를 얻을 수 있지만, 다시 한번이까지 간 유지하는 것이 좋습니다

compile 'com.google.android.gms:play-services:11.2.2' 

가 명심

날짜.

+0

실행 지금 내 프로젝트 이벤트 로그는 "디버거 지역 8600에 결합 할 수 없습니다 @Hristo 스토야노프는 –

+0

깨끗하려고합니다. - –

+0

를 다시 지금 이벤트 로그를 보여줍니다"이 표시 즉시 실행 전체 빌드를 수행하고 설치에 \t \t \t 설치 이후 장치가 디스크의 로컬 빌드와 일치하지 않습니다. "@ Hristo Stoyanov –

관련 문제