UPD。私はこれらの質問と回答(Class file for com.google.android.gms.internal.zzaja not found)を読んだ。しかし、私は私のプロジェクトで追加または削除する必要がある文字列を理解しません。 私はコード内にこの文字列やその他の文字列がないので、 コンパイル 'com.google.android.gms:play-services-location:9.2.0'FireBaseエラー:com.google.android.gms.internal.zzanbのzzanbクラスファイルにアクセスできない。
私はFireBaseを使用してAndroidアプリケーションを開発しています。
エラー:(39、25)エラー:com.google.android.gms.internal.zzanbためzzanb クラスファイルにアクセスすることはできませんが見つからない
私は私のプロジェクトをビルドしたい場合、私はエラーを持っていますこのエラーは、ステートメントを呼び出すことによって発生しました:FirebaseAuth.getInstance()。getCurrentUser();
プロジェクトbuild.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:3.0.0'
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
モジュールbuild.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "xxx.yyy.zzz"
minSdkVersion 19
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')
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.google.firebase:firebase-core:10.0.1'
testCompile 'junit:junit:4.12'
compile 'com.android.support:design:25.1.0'
compile 'com.firebaseui:firebase-ui:0.6.0'
compile 'com.android.support.test.espresso:espresso-core:2.2.2'
}
apply plugin: 'com.google.gms.google-services'
、そのエラーを解決するために私を助けてくださいが)私はすでに(その質問を読んだ
PS Firebase Error cannot access zzanb after using play-services-xxx:9.8.00)、私は何かを理解できませんでした。自分の状況でbuild.gradleファイルを追加または削除する必要があります。
[クラスファイルcom.google.android.gms.internal.zzajaが見つかりません](http://stackoverflow.com/questions/38073706/class-file-for-com-google-android-gms) -internal-zzaja-not-found) – Danieboy
@Danieboy私は自分の質問を更新しました。それを見てください –
Firebase、またはあなたが見つけたライブラリをコンパイルするには、公式の文書を常に参照してください。 **その後、** firebase-ui:0.6.0'を使用するように指示されたチュートリアルを続行してください。 –