0

는 그래서 중포 기지 스토리지를 사용하는 것을 시도하고있다, 나는 의존성의 코드 줄을 복사하여 붙여 넣을 때Firebase 저장 오류를 수정하는 방법은 무엇입니까?

오류 : (33, 13

compile 'com.google.firebase:firebase-storage:9.2.0' 
compile 'com.google.firebase:firebase-auth:9.2.0' 

나는 내용의 빌드 오류 com.google.firebase을 : 중포 기지 저장 :) 해결하는 데 실패 프로젝트 구조 대화 상자에서 파일
쇼에서 9.2.0 쇼

오류 : 해결하지 못했습니다 com.googl e.firebase : 중포 기지 코어 : 9.2.0 파일 열기
표시 대화 프로젝트 구조 오류

: com.google.firebase을 : 중포 기지-인증을 (34, 13)를 해결하는 데 실패했습니다 : 9.2.0 파일에 표시
프로젝트 구조 대화 상자에 표시

내 의존성은 다음과 같습니다.

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:24.0.0-beta1' 
    compile 'com.android.support:design:24.0.0-beta1' 
    compile 'com.firebase:firebase-client-android:2.3.1' 
    compile 'com.firebaseui:firebase-ui:0.3.1' 
    compile 'com.google.firebase:firebase-storage:9.2.0' 
    compile 'com.google.firebase:firebase-auth:9.2.0' 
} 
apply plugin: 'com.google.gms.google-services' 

또한 Firebase 데이터베이스와 Firebase 스토리지의 차이점은 무엇입니까? 언제 다른 것을 사용 하나, 둘 다 정보를 저장하지 않습니까?

+0

'com.firebase :'시작 의존성은 구글이 파이어베이스를 소유하게됨에 따라 (최근 두 가지 의존성을 비교하자면) 더 이상 사용되지 않을 것이다. 최신 버전보다 위에 있기 때문에 오류가 발생할 수 있습니다. 데이터베이스는 데이터베이스이므로 기본 데이터 유형을 저장할 수 있습니다. 저장소는 이미지, 미디어 등을 업로드 할 수있는 "클라우드"와 같습니다. – yennsarah

+0

SDK 관리자에 Google Play 서비스가 설치되어 있습니까? – LordRaydenMK

+0

@LordRaydenMK 그래,하지만 그들을 업데이트해야 할까? 그것만이 가능한 해결책입니까? – TheQ

답변

1

당신은 our getting started instructions을 추적 했습니까? 이 deps를 해결하는 데 도움이되는 플러그인이 누락되었을 수 있습니다. 업그레이드 된 버전

compile 'com.firebase:firebase-client-android:2.3.1' 
compile 'com.firebaseui:firebase-ui:0.3.1' 

및 교체 :

은 또한 라인을 제거 할거야 중포 기지 데이터베이스 및 중포 기지 저장의 차이에 관해서는

compile 'com.google.firebase:firebase-database:9.2.0' 
compile 'com.firebaseui:firebase-ui:0.4.2' 

Firebase documentation 님의 답변 :

  • The Firebase Realtime Database stores JSON application data, like game state or chat messages, and synchronizes changes instantly across all connected devices.

  • Firebase Remote Config stores developer-specified key-value pairs to change the behavior and appearance of your app without requiring users to download an update.

  • Firebase Hosting hosts the HTML, CSS, and JavaScript for your website as well as other developer-provided assets like graphics, fonts, and icons.

  • Firebase Storage stores files such as images, videos, and audio as well as other user-generated content.

+0

안녕하세요 마이크, 답장을 보내 주셔서 감사합니다. 그래서 내가 다음과 같이 바꿨을 때 : 'com.google.firebase : firebase-storage : 9.2.0'을 컴파일하고 'com.google.firebase : firebase-auth : 9.2.0'을 컴파일하면 'com.google.firebase : firebase-storage : 9.0.1 ' 'com.google.firebase : firebase-auth : 9.0.1 '이 (가) 컴파일되었습니다. 그렇다면 코드 스 니펫이 작동하도록 더 많은 업데이트가 필요한 것은 내 안드로이드 스튜디오 일뿐입니다. – TheQ

+0

당신의 정의도 내 혼란을 명확히하는 데 도움이되었습니다. 고마워. – TheQ