FirebaseAuth Error : DynamiteModule: Local module descriptor class for com.google.firebase.auth not found

2,480 views
Skip to first unread message

Tarek Aloui

unread,
Oct 24, 2016, 12:52:09 AM10/24/16
to Firebase Google Group
Greetings,
I'm a newbie to Firebase, and I'm trying to make an activity on Android to Sign up using email/password method, I followed the Firebase docs but I have got 2 errors :

1- DynamiteModule: Local module descriptor class for com.google.firebase.auth not found
2- Google Play services is missing


import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import android.view.View;

import android.widget.Button;
import android.widget.EditText;

import android.widget.Toast;

import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.auth.AuthResult;
import com.google.firebase.auth.FirebaseAuth;

import java.util.ArrayList;

public class MainActivity extends AppCompatActivity {
//Variables
FirebaseAuth mAuth;
String email, passwd;
//UI elements
Button btn_sign_up;
EditText et_email, et_passwd;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
btn_sign_up = (Button) findViewById(R.id.btn_sign_up);
et_email = (EditText) findViewById(R.id.et_email);
et_passwd = (EditText) findViewById(R.id.et_passwd);

//FirebaseAuth listener
mAuth = FirebaseAuth.getInstance();
}

@Override
protected void onStart() {
super.onStart();
btn_sign_up.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
email = et_email.getText().toString();
passwd = et_passwd.getText().toString();
mAuth.createUserWithEmailAndPassword(email, passwd)
.addOnCompleteListener(new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
Toast.makeText(getApplicationContext(), "Done !", Toast.LENGTH_LONG).show();
}
});
}
});
et_passwd.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
et_passwd.setText("");
}
});
et_email.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
et_email.setText("");
}
});
}
}


PS : All my software is up to date : Google Play Services version is 37

Please Help me, because I didn't find anything online : on Stack OverFlow ...

Kato Richardson

unread,
Oct 25, 2016, 11:34:16 AM10/25/16
to Firebase Google Group
Hi Tarek,

What does your build.gradle look like? What versions do you have? If it's not the latest, can you upgrade?

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/92e01abb-1de8-429e-9327-7f54e5a67aea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Reply all
Reply to author
Forward
0 new messages