Android - I cannot choose a method in Fragment - firebase [duplicate] - android

This question already has an answer here:
NullPointerException when setting TextView via ButtonClick
(1 answer)
Closed 5 years ago.
I have one activity and a few fragments. My structure looks like this:
Main Activity ->
- Menu 1 Fragment-> Daily Fragment / Weekly Fragment / Monthly Fragment / Annual Fragment
- Menu 2 Fragment -> empty
- Menu 3 Fragment -> empty
All menus are fragments.
Now I want to add values to the database (Cloud Firebase), but I can not call the method (onClick).
I did OnClickListener, and Override onClick (View v). It still does not work. What else do I need?
Daily Fragment:
public class DailyFragment extends Fragment implements
View.OnClickListener{
private static final String QUOTE_KEY = "quote";
private static final String AUTHOR_KEY = "author";
private static final String TAG= "InspiringQuote";
private DocumentReference mDocRef = FirebaseFirestore.getInstance().document("sampleData/inspirations");
#Nullable
#Override
public View onCreateView(LayoutInflater inflater, #Nullable ViewGroup container, #Nullable Bundle savedInstanceState) {
//just change the fragment_weekly
//with the fragment you want to inflate
//like if the class is DailyFragment it should have R.layout.home_fragment
//if it is WeeklyFragment it should have R.layout.fragment_weekly
//return inflater.inflate(R.layout.fragment_daily, null);
View layout = inflater.inflate(R.layout.fragment_daily, container, false);
//Dołączamy do przycisku obiekt nasłuchujący
Button saveButton = (Button)layout.findViewById(R.id.bn_save);
saveButton.setOnClickListener(this);
return layout;
}
#Override
public void onClick(View v){
switch (v.getId()) {
case R.id.bn_save:
saveQuote(v);
break;
}
}
public void saveQuote (View view){
EditText quoteView = (EditText) view.findViewById(R.id.quote);
EditText authorView = (EditText) view.findViewById(R.id.author);
String quoteText = quoteView.getText().toString();
String authorText = authorView.getText().toString();
if (quoteText.isEmpty() || authorText.isEmpty()) { return; }
Map<String, Object> dataToSave = new HashMap<String, Object>();
dataToSave.put(QUOTE_KEY, quoteText);
dataToSave.put(AUTHOR_KEY, quoteText);
mDocRef.set(dataToSave).addOnSuccessListener(new OnSuccessListener<Void>() {
#Override
public void onSuccess(Void aVoid) {
Log.d(TAG, "Dokument został zapisany!");
}
}).addOnFailureListener(new OnFailureListener() {
#Override
public void onFailure(#NonNull Exception e) {
Log.w(TAG, "Błąd, dokument nie został zapisany.", e);
}
});
}}
XML:
<TextView
android:id="#+id/tv_dzienne"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="#+id/quote"
android:layout_centerHorizontal="true"
android:layout_marginBottom="52dp"
android:text="Dzienne"
android:textAppearance="#style/Base.TextAppearance.AppCompat.Large" />
<EditText
android:id="#+id/quote"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="#+id/bn_save"
android:layout_alignParentStart="true"
android:layout_marginBottom="67dp"
android:ems="10"
android:hint="Podaj wartość"
android:inputType="textCapSentences"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingTop="8dp" />
<EditText
android:id="#+id/author"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentStart="true"
android:layout_alignTop="#+id/quote"
android:layout_marginTop="51dp"
android:ems="10"
android:hint="Nazwa"
android:inputType="textPersonName"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingTop="8dp" />
<Button
android:id="#+id/bn_save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginEnd="8dp"
android:onClick="saveQuote" --> **cannot resolve symbol**
android:text="#string/save_quote" />
02-13 19:09:49.852 11587-11587/? I/zygote: Not late-enabling -Xcheck:jni (already on)
02-13 19:09:49.865 11587-11587/? W/zygote: Unexpected CPU variant for X86 using defaults: x86
02-13 19:09:50.864 11587-11587/? W/zygote: Skipping duplicate class check due to unrecognized classloader
02-13 19:09:50.867 11587-11587/? W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
02-13 19:09:50.871 11587-11587/? W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
02-13 19:09:50.875 11587-11587/? I/BiChannelGoogleApi: [FirebaseAuth: ] No Fallback module; NOT setting up for lazy initialization
02-13 19:09:50.879 11587-11607/? W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
02-13 19:09:50.892 11587-11610/? I/DynamiteModule: Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:0
02-13 19:09:50.892 11587-11610/? I/DynamiteModule: Selected local version of com.google.android.gms.flags
02-13 19:09:50.894 11587-11607/? I/FirebaseAuth: [FirebaseAuth:] Loading module via FirebaseOptions.
02-13 19:09:50.894 11587-11607/? I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to gms implementation
02-13 19:09:50.894 11587-11587/? V/FA: Cancelling job. JobID: -386501406
02-13 19:09:50.895 11587-11587/? V/FA: Registered activity lifecycle callback
02-13 19:09:50.896 11587-11587/? I/FirebaseInitProvider: FirebaseApp initialization successful
02-13 19:09:50.917 11587-11613/? V/FA: Collection enabled
02-13 19:09:50.917 11587-11613/? V/FA: App package, google app id: com.example.xovin.organizerrozwojuosobistego, 1:922322846834:android:d173fbb977e9a87d
02-13 19:09:50.918 11587-11613/? I/FA: App measurement is starting up, version: 11910
02-13 19:09:50.918 11587-11613/? I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
02-13 19:09:50.918 11587-11610/? W/DynamiteModule: Local module descriptor class for com.google.android.gms.crash not found.
02-13 19:09:50.919 11587-11613/? I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.example.xovin.organizerrozwojuosobistego
02-13 19:09:50.919 11587-11613/? D/FA: Debug-level message logging enabled
02-13 19:09:50.922 11587-11610/? I/DynamiteModule: Considering local module com.google.android.gms.crash:0 and remote module com.google.android.gms.crash:10
02-13 19:09:50.922 11587-11610/? I/DynamiteModule: Selected remote version of com.google.android.gms.crash, version >= 10
02-13 19:09:50.925 11587-11587/? V/FA: onActivityCreated
02-13 19:09:50.974 11587-11610/? W/zygote: Skipping duplicate class check due to unrecognized classloader
02-13 19:09:50.979 11587-11613/? V/FA: Connecting to remote service
02-13 19:09:50.992 11587-11613/? V/FA: Connection attempt already in progress
02-13 19:09:50.995 11587-11610/? I/FirebaseCrashApiImpl: FirebaseCrashApiImpl created by ClassLoader ae[DexPathList[[zip file "/system/priv-app/PrebuiltGmsCore/app_chimera/m/DynamiteModulesC.apk"],nativeLibraryDirectories=[/data/user_de/0/com.google.android.gms/app_chimera/m/00000003/n/x86, /system/lib, /vendor/lib]]]
02-13 19:09:50.995 11587-11610/? I/FirebaseCrash: FirebaseCrash reporting loaded - com.google.android.gms.internal.zzdzk#963bd28
02-13 19:09:51.006 11587-11611/? I/DynamiteModule: Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:0
02-13 19:09:51.006 11587-11611/? I/DynamiteModule: Selected local version of com.google.android.gms.flags
02-13 19:09:51.012 11587-11611/? W/DynamiteModule: Local module descriptor class for com.google.android.gms.crash not found.
02-13 19:09:51.042 11587-11611/? I/FirebaseCrashApiImpl: FirebaseCrash reporting API initialized
02-13 19:09:51.042 11587-11611/? I/FirebaseCrash: FirebaseCrash reporting initialized com.google.android.gms.internal.zzdzk#963bd28
02-13 19:09:51.042 11587-11611/? D/FirebaseCrash: Firebase Analytics Listener for Firebase Crash is initialized
02-13 19:09:51.134 11587-11587/? W/linker: "/data/user_de/0/com.google.android.gms/app_extracted_libs/x86/libconscrypt_gmscore_jni.so" unused DT entry: type 0xf arg 0x91
02-13 19:09:51.135 11587-11587/? V/NativeCrypto: Registering com/google/android/gms/org/conscrypt/NativeCrypto's 276 native methods...
02-13 19:09:51.183 11587-11587/? D/NetworkSecurityConfig: No Network Security Config specified, using platform default
02-13 19:09:51.185 11587-11592/? I/zygote: Do partial code cache collection, code=28KB, data=30KB
02-13 19:09:51.185 11587-11587/? I/ProviderInstaller: Installed default security provider GmsCore_OpenSSL
02-13 19:09:51.186 11587-11592/? I/zygote: After code cache collection, code=27KB, data=30KB
02-13 19:09:51.186 11587-11592/? I/zygote: Increasing code cache capacity to 128KB
02-13 19:09:51.223 11587-11613/? V/FA: Connection attempt already in progress
02-13 19:09:51.224 11587-11613/? V/FA: Activity resumed, time: 79702594
02-13 19:09:51.239 11587-11613/? I/FA: Tag Manager is not found and thus will not be used
02-13 19:09:51.241 11587-11613/? D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-3727998583761649633}]
02-13 19:09:51.243 11587-11618/? D/OpenGLRenderer: HWUI GL Pipeline
02-13 19:09:51.274 11587-11613/? V/FA: Connection attempt already in progress
02-13 19:09:51.307 11587-11592/? I/zygote: Do partial code cache collection, code=37KB, data=54KB
02-13 19:09:51.310 11587-11592/? I/zygote: After code cache collection, code=34KB, data=53KB
02-13 19:09:51.310 11587-11592/? I/zygote: Increasing code cache capacity to 256KB
02-13 19:09:51.312 11587-11592/? I/zygote: JIT allocated 71KB for compiled code of void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int)
02-13 19:09:51.312 11587-11592/? I/zygote: Compiler allocated 4MB to compile void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int)
02-13 19:09:53.367 11587-11618/com.example.xovin.organizerrozwojuosobistego I/OpenGLRenderer: Initialized EGL, version 1.4
02-13 19:09:53.367 11587-11618/com.example.xovin.organizerrozwojuosobistego D/OpenGLRenderer: Swap behavior 1
02-13 19:09:53.367 11587-11618/com.example.xovin.organizerrozwojuosobistego W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
02-13 19:09:53.367 11587-11618/com.example.xovin.organizerrozwojuosobistego D/OpenGLRenderer: Swap behavior 0
02-13 19:09:54.392 11587-11618/com.example.xovin.organizerrozwojuosobistego D/EGL_emulation: eglCreateContext: 0xa2f74f00: maj 2 min 0 rcv 2
02-13 19:09:55.204 11587-11592/com.example.xovin.organizerrozwojuosobistego I/zygote: Do full code cache collection, code=125KB, data=68KB
02-13 19:09:55.223 11587-11592/com.example.xovin.organizerrozwojuosobistego I/zygote: After code cache collection, code=102KB, data=39KB
02-13 19:09:55.400 11587-11618/com.example.xovin.organizerrozwojuosobistego D/EGL_emulation: eglMakeCurrent: 0xa2f74f00: ver 2 0 (tinfo 0x92495230)
02-13 19:09:55.428 11587-11587/com.example.xovin.organizerrozwojuosobistego I/Choreographer: Skipped 249 frames! The application may be doing too much work on its main thread.
02-13 19:09:57.664 11587-11618/com.example.xovin.organizerrozwojuosobistego D/EGL_emulation: eglMakeCurrent: 0xa2f74f00: ver 2 0 (tinfo 0x92495230)
02-13 19:09:59.755 11587-11587/com.example.xovin.organizerrozwojuosobistego I/Choreographer: Skipped 259 frames! The application may be doing too much work on its main thread.
02-13 19:09:59.755 11587-11613/com.example.xovin.organizerrozwojuosobistego D/FA: Connected to remote service
02-13 19:09:59.755 11587-11613/com.example.xovin.organizerrozwojuosobistego V/FA: Processing queued up service tasks: 4
02-13 19:09:59.922 11587-11587/com.example.xovin.organizerrozwojuosobistego W/View: dispatchProvideAutofillStructure(): not laid out, ignoring
02-13 19:09:59.928 11587-11587/com.example.xovin.organizerrozwojuosobistego I/chatty: uid=10089(u0_a89) com.example.xovin.organizerrozwojuosobistego identical 7 lines
02-13 19:09:59.928 11587-11587/com.example.xovin.organizerrozwojuosobistego W/View: dispatchProvideAutofillStructure(): not laid out, ignoring
02-13 19:09:59.935 11587-11587/com.example.xovin.organizerrozwojuosobistego I/AssistStructure: Flattened final assist data: 9104 bytes, containing 1 windows, 44 views
02-13 19:09:59.950 11587-11628/com.example.xovin.organizerrozwojuosobistego I/FirebaseCrash: Sending crashes
02-13 19:10:01.237 11587-11613/com.example.xovin.organizerrozwojuosobistego V/FA: Session started, time: 79712610
02-13 19:10:01.240 11587-11613/com.example.xovin.organizerrozwojuosobistego D/FA: Logging event (FE): session_start(_s), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-3727998583761649633}]
02-13 19:10:06.267 11587-11613/com.example.xovin.organizerrozwojuosobistego V/FA: Inactivity, disconnecting from the service
02-13 19:10:07.754 11587-11592/com.example.xovin.organizerrozwojuosobistego I/zygote: Do partial code cache collection, code=123KB, data=70KB
02-13 19:10:07.754 11587-11592/com.example.xovin.organizerrozwojuosobistego I/zygote: After code cache collection, code=123KB, data=70KB
02-13 19:10:07.754 11587-11592/com.example.xovin.organizerrozwojuosobistego I/zygote: Increasing code cache capacity to 512KB
02-13 19:10:26.008 11587-11592/com.example.xovin.organizerrozwojuosobistego I/zygote: Do full code cache collection, code=241KB, data=166KB
02-13 19:10:26.008 11587-11592/com.example.xovin.organizerrozwojuosobistego I/zygote: After code cache collection, code=162KB, data=105KB
02-13 19:10:31.670 11587-11587/com.example.xovin.organizerrozwojuosobistego D/AndroidRuntime: Shutting down VM
02-13 19:10:31.671 11587-11587/com.example.xovin.organizerrozwojuosobistego E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.xovin.organizerrozwojuosobistego, PID: 11587
java.lang.NullPointerException: Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference
at com.example.xovin.organizerrozwojuosobistego.DailyFragment.saveQuote(DailyFragment.java:61)
at com.example.xovin.organizerrozwojuosobistego.DailyFragment$1.onClick(DailyFragment.java:48)
at android.view.View.performClick(View.java:6256)
at android.view.View$PerformClick.run(View.java:24701)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
02-13 19:10:31.671 11587-11587/com.example.xovin.organizerrozwojuosobistego E/UncaughtException: java.lang.NullPointerException: Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference
at com.example.xovin.organizerrozwojuosobistego.DailyFragment.saveQuote(DailyFragment.java:61)
at com.example.xovin.organizerrozwojuosobistego.DailyFragment$1.onClick(DailyFragment.java:48)
at android.view.View.performClick(View.java:6256)
at android.view.View$PerformClick.run(View.java:24701)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
02-13 19:10:31.675 11587-11613/com.example.xovin.organizerrozwojuosobistego D/FA: Logging event (FE): app_exception(_ae), Bundle[{firebase_event_origin(_o)=crash, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-3727998583761649633, timestamp=1518549031673, fatal=1}]
02-13 19:10:31.747 11587-11613/com.example.xovin.organizerrozwojuosobistego V/FA: Connecting to remote service
02-13 19:10:31.749 11587-11613/com.example.xovin.organizerrozwojuosobistego V/FA: Recording user engagement, ms: 40528
02-13 19:10:31.752 11587-11613/com.example.xovin.organizerrozwojuosobistego D/FA: Logging event (FE): user_engagement(_e), Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=40528, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-3727998583761649633}]
02-13 19:10:31.766 11587-11613/com.example.xovin.organizerrozwojuosobistego V/FA: Connection attempt already in progress
02-13 19:10:31.902 11587-11638/com.example.xovin.organizerrozwojuosobistego I/FirebaseCrash: Sending crashes
02-13 19:10:32.501 11587-11638/com.example.xovin.organizerrozwojuosobistego I/FirebaseCrash: Response code: 200
02-13 19:10:32.503 11587-11638/com.example.xovin.organizerrozwojuosobistego I/FirebaseCrash: Report sent with crash report id: 1794c89e94000000

Button saveButton = (Button)layout.findViewById(R.id.bn_save);
saveButton.setOnClickListener(new View.OnClickListener() {
#Override
public void onClick(View v) {
// do something when the corky2 is clicked
}
});
try this way since i think when you go to your fragment it changes your view so basically you are not on the right view

Related

Error 16 problem with sign in google firebase account

As you can see, here is my code mostly copied from google documentation for google sign in authentication. The problem is when I click on sign in button it throws me an error called "16:" Sorry for posting images, I got problem with posting a code, hope so someone can help me to solve this problem.
**Dependencies
//for firebase
implementation 'com.google.firebase:firebase-messaging:15.0.2'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-crash:15.0.2'
implementation 'com.firebase:firebase-client-android:2.3.1'
implementation 'com.google.firebase:firebase-storage:15.0.2'
implementation 'com.firebaseui:firebase-ui-auth:3.3.1'
implementation 'com.google.firebase:firebase-auth:16.0.3'
implementation 'com.google.android.gms:play-services-auth:16.0.0'**
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_welcome_screen);
onCreate();
SignInButton signInButton = findViewById(R.id.sign_in_button);
signInButton.setSize(SignInButton.SIZE_STANDARD);
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestEmail()
.build();
mGoogleSignInClient = GoogleSignIn.getClient(this, gso);
mAuth = FirebaseAuth.getInstance();
signInButton.setOnClickListener(new View.OnClickListener() {
#Override
public void onClick(View view) {
signIn();
}
});
}
private void signIn() {
Intent signInIntent = mGoogleSignInClient.getSignInIntent();
startActivityForResult(signInIntent, RC_SIGN_IN);
}
private void handleSignInResult(Task<GoogleSignInAccount> completedTask) {
try {
GoogleSignInAccount account = completedTask.getResult(ApiException.class);
Intent intent = new Intent(WelcomeScreen.this, Main.class);
startActivity(intent);
} catch (ApiException e) {
Toast.makeText(WelcomeScreen.this, "problem je: " + e.getStatusCode(), Toast.LENGTH_SHORT).show();
}
}
#Override
public void onStart() {
super.onStart();
if (mAuth.getCurrentUser() != null) {
Intent intent = new Intent(WelcomeScreen.this, Main.class);
startActivity(intent);
}
}
#Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == RC_SIGN_IN) {
Task<GoogleSignInAccount> task = GoogleSignIn.getSignedInAccountFromIntent(data);
handleSignInResult(task);
}
}
Stack trace:
2018-09-27 16:32:54.320 6371-6371/com.example.user.graduationproject I/art: Late-enabling -Xcheck:jni
2018-09-27 16:32:54.320 6371-6371/com.example.user.graduationproject D/houdini: [6371] Initialize library(version: 6.1.2d_x.48748 RELEASE)... successfully.
2018-09-27 16:32:54.512 6371-6387/com.example.user.graduationproject W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
2018-09-27 16:32:54.540 6371-6391/com.example.user.graduationproject I/DynamiteModule: Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:3
2018-09-27 16:32:54.540 6371-6391/com.example.user.graduationproject I/DynamiteModule: Selected remote version of com.google.android.gms.flags, version >= 3
2018-09-27 16:32:54.545 6371-6385/com.example.user.graduationproject D/libEGL: loaded /system/lib/egl/libEGL_adreno.so
2018-09-27 16:32:54.549 6371-6371/com.example.user.graduationproject V/FA: Registered activity lifecycle callback
2018-09-27 16:32:54.550 6371-6391/com.example.user.graduationproject W/System: ClassLoader referenced unknown path:
2018-09-27 16:32:54.558 6371-6391/com.example.user.graduationproject D/ApplicationLoaders: ignored Vulkan layer search path /data/app/com.google.android.gms-1/lib/x86:/data/app/com.google.android.gms-1/base.apk!/lib/x86 for namespace 0xb7684090
2018-09-27 16:32:54.560 6371-6371/com.example.user.graduationproject I/FirebaseInitProvider: FirebaseApp initialization successful
2018-09-27 16:32:54.562 6371-6371/com.example.user.graduationproject I/InstantRun: starting instant run server: is main process
2018-09-27 16:32:54.573 6371-6392/com.example.user.graduationproject W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
2018-09-27 16:32:54.575 6371-6385/com.example.user.graduationproject D/libEGL: loaded /system/lib/egl/libGLESv1_CM_adreno.so
2018-09-27 16:32:54.581 6371-6385/com.example.user.graduationproject D/libEGL: loaded /system/lib/egl/libGLESv2_adreno.so
2018-09-27 16:32:54.595 6371-6371/com.example.user.graduationproject W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
2018-09-27 16:32:54.598 6371-6371/com.example.user.graduationproject V/FA: onActivityCreated
2018-09-27 16:32:54.607 6371-6391/com.example.user.graduationproject W/System: ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/0000000a/n/armeabi-v7a
2018-09-27 16:32:54.607 6371-6391/com.example.user.graduationproject W/System: ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/0000000a/n/armeabi
2018-09-27 16:32:54.609 6371-6392/com.example.user.graduationproject I/FirebaseAuth: [FirebaseAuth:] Loading module via FirebaseOptions.
2018-09-27 16:32:54.609 6371-6392/com.example.user.graduationproject I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to gms implementation
2018-09-27 16:32:54.632 6371-6395/com.example.user.graduationproject V/FA: Collection enabled
2018-09-27 16:32:54.632 6371-6395/com.example.user.graduationproject V/FA: App package, google app id: com.example.user.graduationproject, 1:155824206953:android:24d999f6e00c6563
2018-09-27 16:32:54.632 6371-6395/com.example.user.graduationproject I/FA: App measurement is starting up, version: 12451
2018-09-27 16:32:54.632 6371-6395/com.example.user.graduationproject I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
2018-09-27 16:32:54.632 6371-6395/com.example.user.graduationproject I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.example.user.graduationproject
2018-09-27 16:32:54.632 6371-6395/com.example.user.graduationproject D/FA: Debug-level message logging enabled
2018-09-27 16:32:54.635 6371-6391/com.example.user.graduationproject W/DynamiteModule: Local module descriptor class for com.google.android.gms.crash not found.
2018-09-27 16:32:54.637 6371-6391/com.example.user.graduationproject I/DynamiteModule: Considering local module com.google.android.gms.crash:0 and remote module com.google.android.gms.crash:215
2018-09-27 16:32:54.637 6371-6391/com.example.user.graduationproject I/DynamiteModule: Selected remote version of com.google.android.gms.crash, version >= 215
2018-09-27 16:32:54.640 6371-6391/com.example.user.graduationproject I/FirebaseCrashApiImpl: FirebaseCrashApiImpl created by ClassLoader ad[DexPathList[[zip file "/data/user_de/0/com.google.android.gms/app_chimera/m/0000000a/DynamiteModulesC.apk"],nativeLibraryDirectories=[/data/user_de/0/com.google.android.gms/app_chimera/m/0000000a/n/armeabi-v7a, /data/user_de/0/com.google.android.gms/app_chimera/m/0000000a/n/armeabi, /system/lib, /vendor/lib]]]
2018-09-27 16:32:54.641 6371-6391/com.example.user.graduationproject I/FirebaseCrash: FirebaseCrash reporting loaded - com.google.android.gms.internal.measurement.zzxw#9bbbe64
2018-09-27 16:32:54.648 6371-6393/com.example.user.graduationproject I/DynamiteModule: Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:3
2018-09-27 16:32:54.648 6371-6393/com.example.user.graduationproject I/DynamiteModule: Selected remote version of com.google.android.gms.flags, version >= 3
2018-09-27 16:32:54.652 6371-6393/com.example.user.graduationproject W/DynamiteModule: Local module descriptor class for com.google.android.gms.crash not found.
2018-09-27 16:32:54.662 6371-6393/com.example.user.graduationproject I/FirebaseCrashApiImpl: FirebaseCrash reporting API initialized
2018-09-27 16:32:54.662 6371-6393/com.example.user.graduationproject I/FirebaseCrash: FirebaseCrash reporting initialized com.google.android.gms.internal.measurement.zzxw#9bbbe64
2018-09-27 16:32:54.662 6371-6393/com.example.user.graduationproject D/FirebaseCrash: Firebase Analytics Listener for Firebase Crash is initialized
2018-09-27 16:32:54.666 6371-6395/com.example.user.graduationproject V/FA: Cancelling job. JobID: -1494669227
2018-09-27 16:32:54.676 6371-6395/com.example.user.graduationproject V/FA: Connecting to remote service
2018-09-27 16:32:54.680 6371-6395/com.example.user.graduationproject V/FA: Connection attempt already in progress
2018-09-27 16:32:55.250 6371-6371/com.example.user.graduationproject D/ApplicationLoaders: ignored Vulkan layer search path /data/app/com.google.android.gms-1/lib/x86:/data/app/com.google.android.gms-1/base.apk!/lib/x86 for namespace 0xb76840d0
2018-09-27 16:32:55.256 6371-6371/com.example.user.graduationproject I/DynamiteModule: Considering local module com.google.android.gms.signinbutton_dynamite:0 and remote module com.google.android.gms.signinbutton_dynamite:2
2018-09-27 16:32:55.256 6371-6371/com.example.user.graduationproject I/DynamiteModule: Selected remote version of com.google.android.gms.signinbutton_dynamite, version >= 2
2018-09-27 16:32:55.274 6371-6371/com.example.user.graduationproject W/System: ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/00000009/n/armeabi-v7a
2018-09-27 16:32:55.274 6371-6371/com.example.user.graduationproject W/System: ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/00000009/n/armeabi
2018-09-27 16:32:55.323 6371-6395/com.example.user.graduationproject I/FA: Tag Manager is not found and thus will not be used
2018-09-27 16:32:55.335 6371-6395/com.example.user.graduationproject D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=WelcomeScreen, firebase_screen_id(_si)=-4609609622484588595}]
2018-09-27 16:32:55.350 6371-6395/com.example.user.graduationproject V/FA: Connection attempt already in progress
2018-09-27 16:32:55.351 6371-6395/com.example.user.graduationproject V/FA: Connection attempt already in progress
2018-09-27 16:32:55.351 6371-6395/com.example.user.graduationproject V/FA: Activity resumed, time: 2956494
2018-09-27 16:32:55.363 6371-6399/com.example.user.graduationproject I/OpenGLRenderer: Initialized EGL, version 1.4
2018-09-27 16:32:55.363 6371-6399/com.example.user.graduationproject D/OpenGLRenderer: Swap behavior 1
2018-09-27 16:32:55.413 6371-6399/com.example.user.graduationproject W/EGL_emulation: eglSurfaceAttrib not implemented 3093 12436
2018-09-27 16:32:55.413 6371-6399/com.example.user.graduationproject W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xa9078e80, error=EGL_SUCCESS
2018-09-27 16:32:55.420 6371-6371/com.example.user.graduationproject W/art: Before Android 4.1, method int android.support.v7.widget.DropDownListView.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
2018-09-27 16:32:55.460 6371-6395/com.example.user.graduationproject D/FA: Connected to remote service
2018-09-27 16:32:55.461 6371-6395/com.example.user.graduationproject V/FA: Processing queued up service tasks: 4
2018-09-27 16:32:57.221 6371-6395/com.example.user.graduationproject V/FA: Recording user engagement, ms: 1898
2018-09-27 16:32:57.222 6371-6395/com.example.user.graduationproject V/FA: Activity paused, time: 2958392
2018-09-27 16:32:57.224 6371-6395/com.example.user.graduationproject D/FA: Logging event (FE): user_engagement(_e), Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=1898, firebase_screen_class(_sc)=WelcomeScreen, firebase_screen_id(_si)=-4609609622484588595}]
2018-09-27 16:32:57.231 6371-6371/com.example.user.graduationproject V/FA: onActivityCreated
2018-09-27 16:32:57.241 6371-6395/com.example.user.graduationproject D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=WelcomeScreen, firebase_previous_id(_pi)=-4609609622484588595, firebase_screen_class(_sc)=SignInHubActivity, firebase_screen_id(_si)=-4609609622484588594}]
2018-09-27 16:32:57.268 6371-6395/com.example.user.graduationproject V/FA: Activity resumed, time: 2958410
2018-09-27 16:32:57.269 6371-6395/com.example.user.graduationproject V/FA: Screen exposed for less than 1000 ms. Event not sent. time: 31
2018-09-27 16:32:57.273 6371-6395/com.example.user.graduationproject V/FA: Activity paused, time: 2958411
2018-09-27 16:32:57.287 6371-6399/com.example.user.graduationproject W/EGL_emulation: eglSurfaceAttrib not implemented 3093 12436
2018-09-27 16:32:57.287 6371-6399/com.example.user.graduationproject W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xb2d390c0, error=EGL_SUCCESS
2018-09-27 16:33:01.904 6371-6371/com.example.user.graduationproject W/System.err: com.google.android.gms.common.api.ApiException: 16:
2018-09-27 16:33:01.904 6371-6371/com.example.user.graduationproject W/System.err: at com.google.android.gms.common.internal.ApiExceptionUtil.fromStatus(Unknown Source)
2018-09-27 16:33:01.904 6371-6371/com.example.user.graduationproject W/System.err: at com.google.android.gms.auth.api.signin.GoogleSignIn.getSignedInAccountFromIntent(Unknown Source)
2018-09-27 16:33:01.904 6371-6371/com.example.user.graduationproject W/System.err: at com.example.user.graduationproject.Bjelasnica.WelcomeScreen.onActivityResult(WelcomeScreen.java:88)
2018-09-27 16:33:01.904 6371-6371/com.example.user.graduationproject W/System.err: at android.app.Activity.dispatchActivityResult(Activity.java:6945)
2018-09-27 16:33:01.904 6371-6371/com.example.user.graduationproject W/System.err: at android.app.ActivityThread.deliverResults(ActivityThread.java:4088)
2018-09-27 16:33:01.904 6371-6371/com.example.user.graduationproject W/System.err: at android.app.ActivityThread.handleSendResult(ActivityThread.java:4135)
2018-09-27 16:33:01.904 6371-6371/com.example.user.graduationproject W/System.err: at android.app.ActivityThread.-wrap20(ActivityThread.java)
2018-09-27 16:33:01.904 6371-6371/com.example.user.graduationproject W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1536)
2018-09-27 16:33:01.904 6371-6371/com.example.user.graduationproject W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
2018-09-27 16:33:01.904 6371-6371/com.example.user.graduationproject W/System.err: at android.os.Looper.loop(Looper.java:154)
2018-09-27 16:33:01.904 6371-6371/com.example.user.graduationproject W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6169)
2018-09-27 16:33:01.904 6371-6371/com.example.user.graduationproject W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2018-09-27 16:33:01.904 6371-6371/com.example.user.graduationproject W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891)
2018-09-27 16:33:01.904 6371-6371/com.example.user.graduationproject W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)
2018-09-27 16:33:01.910 6371-6395/com.example.user.graduationproject D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=SignInHubActivity, firebase_previous_id(_pi)=-4609609622484588594, firebase_screen_class(_sc)=WelcomeScreen, firebase_screen_id(_si)=-4609609622484588595}]
2018-09-27 16:33:01.936 6371-6395/com.example.user.graduationproject V/FA: Activity resumed, time: 2963077
2018-09-27 16:33:01.953 6371-6399/com.example.user.graduationproject W/EGL_emulation: eglSurfaceAttrib not implemented 3093 12436
2018-09-27 16:33:01.953 6371-6399/com.example.user.graduationproject W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xb2d390c0, error=EGL_SUCCESS
2018-09-27 16:33:04.784 6371-6426/com.example.user.graduationproject I/FirebaseCrash: Sending crashes
2018-09-27 16:33:06.937 6371-6395/com.example.user.graduationproject V/FA: Inactivity, disconnecting from the service
I had the same problem. This is my solution. I hope you will understand.
Situation: How to solve this problem when there is an error code '16:', stuck at the 'Sign In with Google', after we pressed our email at the messagebox not next activity appear but only appear the error.
5.2. To solve this:
5.2.1. Get SHA1 from your project (Android Studio)
5.2.2. Create the API Key and OAuth 2.0 client IDs (Android type). (https://console.cloud.google.com/apis/credentials)
5.2.3. So, the data is set at Google, so get the new Firebase Console google.json at https://console.firebase.google.com/ (at Project Settings). Download it then replace.
5.2.4. Close the Android Studio, open back, then 'Make Project'
5.2.5. Run at the phone. Success!
Refer to this link: google signIn not working in release mode apk android
Extra about google api: https://developers.google.com/maps/documentation/android-sdk/config
(adding extra things for the manifest.xml)
I was also seeing "error code 16" when integrating Google SignIn on Android with Firebase. Still not sure what I was missing but I went back to the beginning and followed this doc:
https://firebase.google.com/docs/auth/android/google-signin
This link is pretty complete. I didn't need to configure anything in Google Cloud console. I did use the info on the Integrating Google SignIn page that the above page links to and got the code and layout for the button.
After struggling for about 48 hrs to solve the firebase google sign-in error 16 credential not matching;
The only thing that solved my problem is to get your web_client_id using "Configure a Google API Console project" through this link https://developers.google.com/identity/sign-in/android/start-integrating#configure_a_project, you should provide the application id from AndroidManifest.xml and sha1 from the signingReport of android studio.
Also, I got different sha1 for each android studio project as to avoid any conflicts in firebase, this by setting debug parameters in signingConfigs {} in android {} in the app build.gradle as follow
android {
signingConfigs {
debug {
storeFile file("path_to_keystore.jks")
storePassword "keystore_password"
keyAlias "key_alias_name"
keyPassword "key_password"
}
}
}
Moreover, I recommend to try firstly google sign in without firebase to give you a positive energy, then secondly go for firebase google sign-in as needed.
Hope this helps every developer facing the same error and save their time.

about creating a dynamic list view with retrieving from firebase android studio

I faced infinite run when I am trying using ListView with retrieving data from firebase, and I don't know how can I solve it.
My main goal is retrieving from firebase with a dynamic number of clients who have a status of "Not approved".
This my RUN
10/03 21:30:58: Launching app $ adb shell am start -n
"com.example.atheer.booklyv1/com.example.atheer.booklyv1.MainActivity"
-a android.intent.action.MAIN -c android.intent.category.LAUNCHER Client not ready yet..Waiting for process to come online Connected to
process 8309 on device emulator-5554 Capturing and displaying logcat
messages from application. This behavior can be disabled in the
"Logcat output" section of the "Debugger" settings page.
W/atheer.booklyv: JIT profile information will not be recorded:
profile file does not exits. I/chatty:
uid=10086(com.example.atheer.booklyv1) identical 10 lines
W/atheer.booklyv: JIT profile information will not be recorded:
profile file does not exits. W/atheer.booklyv: Unsupported class
loader W/atheer.booklyv: Skipping duplicate class check due to
unsupported classloader W/DynamiteModule: Local module descriptor
class for com.google.firebase.auth not found. W/DynamiteModule: Local
module descriptor class for com.google.firebase.auth not found.
W/atheer.booklyv: Verification of android.content.Intent
com.google.android.gms.common.zzf.zza(android.content.Context, int,
java.lang.String) took 130.356ms I/BiChannelGoogleApi: [FirebaseAuth:
] No Fallback module; NOT setting up for lazy initialization
D/FirebaseAuth: Notifying id token listeners about user (
N72Vpxaf6dao4pSf5cvBJ1jwzGo2 ). D/FirebaseApp:
com.google.firebase.crash.FirebaseCrash is not linked. Skipping
initialization. V/FA: Cancelling job. JobID: -1422956107 V/FA:
Registered activity lifecycle callback I/FirebaseInitProvider:
FirebaseApp initialization successful I/InstantRun: starting instant
run server: is main process V/FA: Collection enabled V/FA: App
package, google app id: com.example.atheer.booklyv1,
1:666514046827:android:60ad4570c33e1aec I/FA: App measurement is
starting up, version: 11910
To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.example.atheer.booklyv1 D/FA: Debug-level message logging enabled
W/DynamiteModule: Local module descriptor class for
com.google.firebase.auth not found. V/FA: onActivityCreated V/FA:
Connecting to remote service I/FirebaseAuth: [FirebaseAuth:] Loading
module via FirebaseOptions.
[FirebaseAuth:] Preparing to create service connection to gms implementation V/FA: Connection attempt already in progress
W/atheer.booklyv: Accessing hidden method
Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z
(light greylist, reflection) W/atheer.booklyv: Accessing hidden method
Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light
greylist, reflection) D/OpenGLRenderer: Skia GL Pipeline V/FA:
Connection attempt already in progress
Activity resumed, time: 1574868 I/FA: Tag Manager is not found and thus will not be used D/FirebaseApp: Notifying auth state
listeners. D/FirebaseApp: Notified 0 auth state listeners. D/FA:
Logging event (FE): screen_view(_vs),
Bundle[{firebase_event_origin(_o)=auto,
firebase_screen_class(_sc)=MainActivity,
firebase_screen_id(_si)=5185910341027462403}] D/:
HostConnection::get() New Host Connection established 0xdeffec40, tid
8354 I/ConfigStore:
android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay
retrieved: 0
android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay
retrieved: 0 I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1 W/OpenGLRenderer: Failed to choose
config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/OpenGLRenderer: Swap behavior 0 D/EGL_emulation: eglCreateContext:
0xcc20f240: maj 3 min 0 rcv 3 D/EGL_emulation: eglMakeCurrent:
0xcc20f240: ver 3 0 (tinfo 0xe2730c60) D/EGL_emulation:
eglMakeCurrent: 0xcc20f240: ver 3 0 (tinfo 0xe2730c60) V/FA:
Connection attempt already in progress D/FA: Connected to remote
service V/FA: Processing queued up service tasks: 4 V/StudioProfiler:
StudioProfilers agent attached. V/StudioProfiler: Acquiring
Application for Events V/StudioProfiler: Transformed class:
java/net/URL W/atheer.booklyv: Current dex file has more than one
class in it. Calling RetransformClasses on this class might fail if no
transformations are applied to it! V/StudioProfiler: Memory control
stream started. V/StudioProfiler: Live memory tracking disabled.
V/StudioProfiler: Live memory tracking enabled.
JNIEnv not attached V/StudioProfiler: Loaded classes: 11553 V/StudioProfiler: Tracking initialization took:
410566000ns W/ActivityThread: handleWindowVisibility: no activity for
token android.os.BinderProxy#f188cbd V/FA: Recording user engagement,
ms: 4164 V/FA: Activity paused, time: 1579010 V/FA: onActivityCreated
I/atheer.booklyv: Background concurrent copying GC freed 662(4MB)
AllocSpace objects, 0(0B) LOS objects, 49% free, 3MB/6MB, paused
1.122ms total 328.178ms D/FA: Logging event (FE): user_engagement(_e), Bundle[{firebase_event_origin(_o)=auto,
engagement_time_msec(_et)=4164,
firebase_screen_class(_sc)=MainActivity,
firebase_screen_id(_si)=5185910341027462403}] V/FA: Activity resumed,
time: 1580197 D/FA: Logging event (FE): screen_view(_vs),
Bundle[{firebase_event_origin(_o)=auto,
firebase_previous_class(_pc)=MainActivity,
firebase_previous_id(_pi)=5185910341027462403,
firebase_screen_class(_sc)=mHomePage,
firebase_screen_id(_si)=5185910341027462404}] D/EGL_emulation:
eglMakeCurrent: 0xcc20f240: ver 3 0 (tinfo 0xe2730c60)
W/ActivityThread: handleWindowVisibility: no activity for token
android.os.BinderProxy#877a26c V/FA: Recording user engagement, ms:
4828 V/FA: Activity paused, time: 1585022 V/FA: onActivityCreated
D/FA: Logging event (FE): user_engagement(_e),
Bundle[{firebase_event_origin(_o)=auto,
engagement_time_msec(_et)=4828, firebase_screen_class(_sc)=mHomePage,
firebase_screen_id(_si)=5185910341027462404}] I/DynamiteModule:
Considering local module com.google.android.gms.firebase_database:4
and remote module com.google.android.gms.firebase_database:6
Selected remote version of com.google.android.gms.firebase_database, version >= 6 V/FA: Activity
resumed, time: 1585685 I/Choreographer: Skipped 37 frames! The
application may be doing too much work on its main thread.
W/atheer.booklyv: Unsupported class loader W/atheer.booklyv: Skipping
duplicate class check due to unsupported classloader D/FA: Logging
event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto,
firebase_previous_class(_pc)=mHomePage,
firebase_previous_id(_pi)=5185910341027462404,
firebase_screen_class(_sc)=loginActivity,
firebase_screen_id(_si)=5185910341027462405}] I/OpenGLRenderer: Davey!
duration=916ms; Flags=1, IntendedVsync=1585088907737,
Vsync=1585705574379, OldestInputEvent=9223372036854775807,
NewestInputEvent=0, HandleInputStart=1585721516670,
AnimationStart=1585721565670, PerformTraversalsStart=1585722412670,
DrawStart=1586003516670, SyncQueued=1586003568670,
SyncStart=1586003659670, IssueDrawCommandsStart=1586003710670,
SwapBuffers=1586004070670, FrameCompleted=1586005330670,
DequeueBufferDuration=162000, QueueBufferDuration=300000,
D/EGL_emulation: eglMakeCurrent: 0xcc20f240: ver 3 0 (tinfo
0xe2730c60) D/NetworkSecurityConfig: No Network Security Config
specified, using platform default I/AssistStructure: Flattened final
assist data: 3404 bytes, containing 1 windows, 11 views V/FA:
Inactivity, disconnecting from the service I/AssistStructure:
Flattened final assist data: 3428 bytes, containing 1 windows, 11
views W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod()
returned Gms D/FirebaseAuth: Notifying id token listeners about user (
N72Vpxaf6dao4pSf5cvBJ1jwzGo2 ). D/FirebaseApp: Notifying auth state
listeners. D/FirebaseApp: Notified 1 auth state listeners. V/FA:
Recording user engagement, ms: 21363 V/FA: Connecting to remote
service W/ActivityThread: handleWindowVisibility: no activity for
token android.os.BinderProxy#48f31b0 V/FA: Activity paused, time:
1607047 D/FA: Logging event (FE): user_engagement(_e),
Bundle[{firebase_event_origin(_o)=auto,
engagement_time_msec(_et)=21363,
firebase_screen_class(_sc)=loginActivity,
firebase_screen_id(_si)=5185910341027462405}] V/FA: onActivityCreated
V/FA: Connection attempt already in progress I/atheer.booklyv:
NativeAlloc concurrent copying GC freed 25494(1649KB) AllocSpace
objects, 19(632KB) LOS objects, 50% free, 3MB/7MB, paused 580us total
742.771ms V/FA: Connection attempt already in progress V/FA: Activity resumed, time: 1608103 D/FA: Logging event (FE): screen_view(_vs),
Bundle[{firebase_event_origin(_o)=auto,
firebase_previous_class(_pc)=loginActivity,
firebase_previous_id(_pi)=5185910341027462405,
firebase_screen_class(_sc)=dashboardAdmin,
firebase_screen_id(_si)=5185910341027462406}] D/EGL_emulation:
eglMakeCurrent: 0xcc20f240: ver 3 0 (tinfo 0xe2730c60) V/FA:
Connection attempt already in progress D/FA: Connected to remote
service V/FA: Processing queued up service tasks: 4 W/ActivityThread:
handleWindowVisibility: no activity for token
android.os.BinderProxy#7f475a4 V/FA: Recording user engagement, ms:
5136 V/FA: Activity paused, time: 1613235 D/FA: Logging event (FE):
user_engagement(_e), Bundle[{firebase_event_origin(_o)=auto,
engagement_time_msec(_et)=5136,
firebase_screen_class(_sc)=dashboardAdmin,
firebase_screen_id(_si)=5185910341027462406}] V/FA: onActivityCreated
V/FA: Activity resumed, time: 1613594 D/FA: Logging event (FE):
screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto,
firebase_previous_class(_pc)=dashboardAdmin,
firebase_previous_id(_pi)=5185910341027462406,
firebase_screen_class(_sc)=approvedAdmin,
firebase_screen_id(_si)=5185910341027462407}] D/EGL_emulation:
eglMakeCurrent: 0xcc20f240: ver 3 0 (tinfo 0xe2730c60)
D/EGL_emulation: eglMakeCurrent: 0xcc20f240: ver 3 0 (tinfo
0xe2730c60) W/atheer.booklyv: Long wait of 5.943ms for
Thread[1,tid=8309,Native,Thread*=0xe6674000,peer=0x738f9ec8,"main"]
suspension! D/EGL_emulation: eglMakeCurrent: 0xcc20f240: ver 3 0
(tinfo 0xe2730c60) D/EGL_emulation: eglMakeCurrent: 0xcc20f240: ver 3
0 (tinfo 0xe2730c60) D/EGL_emulation: eglMakeCurrent: 0xcc20f240: ver
3 0 (tinfo 0xe2730c60) V/FA: Inactivity, disconnecting from the
service E/StudioProfiler: JVMTI error:
15(JVMTI_ERROR_THREAD_NOT_ALIVE) I/chatty:
uid=10086(com.example.atheer.booklyv1) Binder:8309_5 identical 3 lines
E/StudioProfiler: JVMTI error: 15(JVMTI_ERROR_THREAD_NOT_ALIVE)
I/FirebaseAuth: [FirebaseAuth:] Loading module via FirebaseOptions.
I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection
to gms implementation
And this is my java code
package com.example.atheer.booklyv1;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import com.google.firebase.database.ChildEventListener;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
import java.util.ArrayList;
import java.util.Map;
public class approvedAdmin extends AppCompatActivity implements View.OnClickListener{
DatabaseReference dref;
ListView listview;
ArrayList<String> list=new ArrayList<>();
ArrayAdapter<String> adapter;
public approvedAdmin() {
}
#Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_approved_admin);
listview=(ListView)findViewById(R.id.list);
dref= FirebaseDatabase.getInstance().getReference("client");
// adapter.notifyDataSetChanged();
dref.addChildEventListener(new ChildEventListener() {
#Override
public void onChildAdded(DataSnapshot dataSnapshot, String s) {
String status;
String name;
String email;
Toast.makeText(approvedAdmin.this, "ok", Toast.LENGTH_SHORT).show();
for(DataSnapshot ds: dataSnapshot.getChildren() ){
if (ds.hasChild("Status")){
status=ds.child("Status").getValue(String.class);
if (status.equalsIgnoreCase("Not approved")){
name= ds.child("name").getValue(String.class);
list.add(name);
adapter= new ArrayAdapter<String>(approvedAdmin.this, android.R.layout.simple_list_item_1, list);
listview.setAdapter(adapter);
}}
}}
#Override
public void onChildChanged(DataSnapshot dataSnapshot, String s) {
}
#Override
public void onChildRemoved(DataSnapshot dataSnapshot) {
}
#Override
public void onChildMoved(DataSnapshot dataSnapshot, String s) {
}
#Override
public void onCancelled(DatabaseError databaseError) {
}
});
}
#Override
public void onClick(View v) {
}
}
And this is my xml code
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".approvedAdmin">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:orientation="vertical"
android:paddingLeft="15dp"
android:paddingRight="15dp">
<ListView
android:id="#android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</LinearLayout>
</android.support.constraint.ConstraintLayout>
You need to move out setting up adapter code out from for loop, like below
for(DataSnapshot ds: dataSnapshot.getChildren() ){
if (ds.hasChild("Status")){
status=ds.child("Status").getValue(String.class);
if (status.equalsIgnoreCase("Not approved")){
name= ds.child("name").getValue(String.class);
list.add(name);
}
}
}
adapter= new ArrayAdapter<String>(approvedAdmin.this, android.R.layout.simple_list_item_1, list);
listview.setAdapter(adapter);
You also need to change the listview id from android:id="#android:id/list" to android:id="#+id/list"

Error running Signup: The activity must be exported or contain an intent-filter

I am new to android studio and I am stuck on this problem for quite a time.I read all the answers of similar questions however none of them helped me.
This is my manifest file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mobility.mobilityindia">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".dashboard" />
<activity android:name=".Forgotpassword" />
<activity android:name=".Signup"
/>
<activity android:name=".Menu"></activity>
</application>
</manifest>
This is my main activity's java file
package com.mobility.mobilityindia;
import android.app.Activity;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.design.widget.Snackbar;
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.RelativeLayout;
import android.widget.TextView;
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;
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
Button btnLogin;
EditText input_email,input_password;
TextView btnSignup,btnForgotPass;
RelativeLayout activity_main;
private FirebaseAuth auth;
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//view
btnLogin=(Button)findViewById(R.id.login_button);
input_email=(EditText)findViewById(R.id.login_email);
input_password=(EditText)findViewById(R.id.login_password);
btnSignup=(TextView)findViewById(R.id.sign_up);
btnForgotPass=(TextView)findViewById(R.id.forgot_password);
activity_main=(RelativeLayout)findViewById(R.id.activity_main);
btnSignup.setOnClickListener(this);
btnForgotPass.setOnClickListener(this);
btnLogin.setOnClickListener(this);
//Init Firebase Auth
auth=FirebaseAuth.getInstance();
//Check already session, if ok--->dashboard
if(auth.getCurrentUser() !=null)
startActivity(new Intent(MainActivity.this,dashboard.class));
}
#Override
public void onClick(View view) {
if(view.getId()==R.id.forgot_password)
{
startActivity(new Intent (MainActivity.this,Forgotpassword.class));
finish();
}
else if(view.getId()==R.id.sign_up)
{
startActivity(new Intent (MainActivity.this,Signup.class));
finish();
}
else if(view.getId()==R.id.login_button)
{
loginUser(input_email.getText().toString(),input_password.getText().toString());
}
}
private void loginUser(String email,final String password) {
auth.signInWithEmailAndPassword(email, password)
.addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
#Override
public void onComplete(#NonNull Task<AuthResult> task) {
if (!task.isSuccessful())
{
if (password.length() < 6)
{
Snackbar snackbar = Snackbar.make(activity_main, "Password should be more than 6 characters", Snackbar.LENGTH_SHORT);
snackbar.show();
}
}
else
{
startActivity(new Intent(MainActivity.this, dashboard.class));
}
}
});
}
}
This is my signup activity's java file
package com.mobility.mobilityindia;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.design.widget.Snackbar;
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.RelativeLayout;
import android.widget.TextView;
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;
public class Signup extends AppCompatActivity implements View.OnClickListener {
Button btnSignup;
TextView btnLogin,btnforgotpass;
EditText input_email,input_pass;
RelativeLayout activity_signup;
private FirebaseAuth auth;
Snackbar snackbar;
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_signup);
//view
btnSignup=(Button)findViewById(R.id.register_button);
btnLogin=(TextView)findViewById(R.id.signup_login);
btnforgotpass=(TextView)findViewById(R.id.signup_forgot_password);
input_email=(EditText)findViewById(R.id.signup_email);
input_pass=(EditText)findViewById(R.id.signup_password);
activity_signup=(RelativeLayout)findViewById(R.id.Signup);
btnSignup.setOnClickListener(this);
btnLogin.setOnClickListener(this);
btnforgotpass.setOnClickListener(this);
//init Firebase
auth= FirebaseAuth.getInstance();
}
#Override
public void onClick(View view){
if(view.getId()==R.id.signup_login)
{
startActivity(new Intent(Signup.this,MainActivity.class));
}
else if(view.getId()==R.id.signup_forgot_password){
startActivity(new Intent(Signup.this,Forgotpassword.class));
finish();
}
else if(view.getId()==R.id.register_button) {
SignUpUser(input_email.getText().toString(),input_pass.getText().toString());
}
}
private void SignUpUser(String email,String password) {
auth.createUserWithEmailAndPassword(email,password)
.addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
#Override
public void onComplete(#NonNull Task<AuthResult> task) {
if(!task.isSuccessful())
{
snackbar= Snackbar.make(activity_signup,"Error: "+task.getException(),snackbar.LENGTH_SHORT);
snackbar.show();
}
else
{
snackbar= Snackbar.make(activity_signup,"Register success :",snackbar.LENGTH_SHORT);
snackbar.show();
}
}
});
}
}
When I try to register,the register the button is not functioning and nothing is added to the database
When I have manually added the details in the database and trying to sign-in,the sign-in button doesn't work
When I run the signup page alone, I get the error that the activity must be exported or contain an intent folder
logcat
07-12 10:59:59.382 32757-32757/? I/zygote: Not late-enabling -Xcheck:jni (already on)
07-12 10:59:59.467 32757-32757/? W/zygote: Unexpected CPU variant for X86 using defaults: x86
07-12 10:59:59.735 32757-302/? I/zygote: Background concurrent copying GC freed 11270(3MB) AllocSpace objects, 0(0B) LOS objects, 83% free, 297KB/1833KB, paused 6.170ms total 149.367ms
07-12 11:00:01.469 32757-329/com.mobility.mobilityindia W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
07-12 11:00:01.486 32757-32766/com.mobility.mobilityindia W/zygote: Suspending all threads took: 5.700ms
07-12 11:00:01.496 32757-332/com.mobility.mobilityindia I/DynamiteModule: Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:0
07-12 11:00:01.496 32757-332/com.mobility.mobilityindia I/DynamiteModule: Selected local version of com.google.android.gms.flags
07-12 11:00:01.577 32757-332/com.mobility.mobilityindia W/DynamiteModule: Local module descriptor class for com.google.android.gms.crash not found.
07-12 11:00:01.594 32757-32757/com.mobility.mobilityindia I/FA: App measurement is starting up, version: 11020
07-12 11:00:01.595 32757-32757/com.mobility.mobilityindia I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
07-12 11:00:01.630 32757-332/com.mobility.mobilityindia W/zygote: Skipping duplicate class check due to unrecognized classloader
07-12 11:00:01.657 32757-329/com.mobility.mobilityindia W/GooglePlayServicesUtil: Google Play services out of date. Requires 11020000 but found 10930470
07-12 11:00:01.660 32757-332/com.mobility.mobilityindia I/DynamiteModule: Considering local module com.google.android.gms.crash:0 and remote module com.google.android.gms.crash:4
07-12 11:00:01.660 32757-332/com.mobility.mobilityindia I/DynamiteModule: Selected remote version of com.google.android.gms.crash, version >= 4
07-12 11:00:01.730 32757-332/com.mobility.mobilityindia W/zygote: Skipping duplicate class check due to unrecognized classloader
07-12 11:00:01.764 32757-32757/com.mobility.mobilityindia V/FA: Collection enabled
07-12 11:00:01.764 32757-32757/com.mobility.mobilityindia V/FA: App package, google app id: com.mobility.mobilityindia, 1:308094300316:android:8bb92942b462bf39
07-12 11:00:01.780 32757-332/com.mobility.mobilityindia I/FirebaseCrashApiImpl: FirebaseCrashApiImpl created by ClassLoader p[DexPathList[[zip file "/data/user_de/0/com.google.android.gms/app_chimera/m/00000004/DynamiteModulesC_GmsCore_prodmnc_alldpi_release.apk"],nativeLibraryDirectories=[/data/user_de/0/com.google.android.gms/app_chimera/m/00000004/n/x86, /system/lib, /system/vendor/lib]]]
07-12 11:00:01.781 32757-32757/com.mobility.mobilityindia I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.mobility.mobilityindia
07-12 11:00:01.781 32757-32757/com.mobility.mobilityindia D/FA: Debug-level message logging enabled
07-12 11:00:01.794 32757-332/com.mobility.mobilityindia I/FirebaseCrash: FirebaseCrash reporting loaded - com.google.android.gms.internal.ml#dfbe7bc
07-12 11:00:01.922 32757-334/com.mobility.mobilityindia I/DynamiteModule: Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:0
07-12 11:00:01.922 32757-334/com.mobility.mobilityindia I/DynamiteModule: Selected local version of com.google.android.gms.flags
07-12 11:00:01.966 32757-334/com.mobility.mobilityindia W/DynamiteModule: Local module descriptor class for com.google.android.gms.crash not found.
07-12 11:00:02.006 32757-32757/com.mobility.mobilityindia V/FA: Cancelling job. JobID: -631849166
07-12 11:00:02.053 32757-334/com.mobility.mobilityindia E/FirebaseCrash: Failed to initialize crash reporting: Can't create handler inside thread that has not called Looper.prepare()
07-12 11:00:02.060 32757-335/com.mobility.mobilityindia E/FirebaseCrash: Failed waiting for crash api to load.
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1063)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1352)
at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:278)
at com.google.firebase.crash.FirebaseCrash.zzFc(Unknown Source:6)
at com.google.firebase.crash.FirebaseCrash.zza(Unknown Source:0)
at com.google.firebase.crash.zza.run(Unknown Source:2)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
07-12 11:00:02.096 32757-32757/com.mobility.mobilityindia V/FA: Registered activity lifecycle callback
07-12 11:00:02.103 32757-32757/com.mobility.mobilityindia I/FirebaseInitProvider: FirebaseApp initialization successful
07-12 11:00:02.113 32757-32757/com.mobility.mobilityindia I/InstantRun: starting instant run server: is main process
07-12 11:00:02.115 32757-32757/com.mobility.mobilityindia V/InstantRun: Starting server socket listening for package com.mobility.mobilityindia on android.net.LocalSocketAddress#27dc3a8
07-12 11:00:02.117 32757-32757/com.mobility.mobilityindia V/InstantRun: Started server for package com.mobility.mobilityindia
07-12 11:00:02.252 32757-349/com.mobility.mobilityindia V/FA: Using measurement service
07-12 11:00:02.254 32757-349/com.mobility.mobilityindia V/FA: Connecting to remote service
07-12 11:00:02.369 32757-349/com.mobility.mobilityindia W/GooglePlayServicesUtil: Google Play services out of date. Requires 11020000 but found 10930470
07-12 11:00:02.371 32757-349/com.mobility.mobilityindia V/FA: Using measurement service
07-12 11:00:02.372 32757-349/com.mobility.mobilityindia V/FA: Connection attempt already in progress
07-12 11:00:02.584 32757-302/com.mobility.mobilityindia I/zygote: Background concurrent copying GC freed 6204(948KB) AllocSpace objects, 7(140KB) LOS objects, 69% free, 669KB/2MB, paused 6.107ms total 68.988ms
07-12 11:00:02.661 32757-32757/com.mobility.mobilityindia V/FA: onActivityCreated
07-12 11:00:03.307 32757-302/com.mobility.mobilityindia I/zygote: NativeAllocBackground concurrent copying GC freed 911(358KB) AllocSpace objects, 0(0B) LOS objects, 64% free, 858KB/2MB, paused 6.302ms total 52.812ms
07-12 11:00:03.424 32757-32766/com.mobility.mobilityindia I/zygote: Waiting for a blocking GC ObjectsAllocated
07-12 11:00:03.485 32757-302/com.mobility.mobilityindia I/zygote: NativeAllocBackground concurrent copying GC freed 308(80KB) AllocSpace objects, 0(0B) LOS objects, 62% free, 908KB/2MB, paused 8.275ms total 114.361ms
07-12 11:00:03.486 32757-32766/com.mobility.mobilityindia I/zygote: WaitForGcToComplete blocked for 62.562ms for cause ObjectsAllocated
07-12 11:00:03.494 32757-32766/com.mobility.mobilityindia W/zygote: Suspending all threads took: 6.195ms
07-12 11:00:03.585 32757-32757/com.mobility.mobilityindia I/TextInputLayout: EditText added is not a TextInputEditText. Please switch to using that class instead.
07-12 11:00:03.599 32757-32757/com.mobility.mobilityindia I/TextInputLayout: EditText added is not a TextInputEditText. Please switch to using that class instead.
07-12 11:00:03.678 32757-349/com.mobility.mobilityindia V/FA: Using measurement service
07-12 11:00:03.681 32757-349/com.mobility.mobilityindia V/FA: Connection attempt already in progress
07-12 11:00:03.811 32757-349/com.mobility.mobilityindia I/DynamiteModule: Considering local module com.google.android.gms.tagmanager:11 and remote module com.google.android.gms.tagmanager:9
07-12 11:00:03.811 32757-349/com.mobility.mobilityindia I/DynamiteModule: Selected local version of com.google.android.gms.tagmanager
07-12 11:00:03.863 32757-375/com.mobility.mobilityindia D/OpenGLRenderer: HWUI GL Pipeline
07-12 11:00:03.896 32757-32757/com.mobility.mobilityindia W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
07-12 11:00:03.924 32757-349/com.mobility.mobilityindia W/GoogleTagManager: No container asset found in /assets/containers. Checking top level /assets directory for container assets.
07-12 11:00:03.933 32757-349/com.mobility.mobilityindia W/GoogleTagManager: Tag Manager's event handler WILL NOT be installed (no container loaded)
07-12 11:00:03.934 32757-349/com.mobility.mobilityindia I/GoogleTagManager: Tag Manager initilization took 34ms
07-12 11:00:03.935 32757-349/com.mobility.mobilityindia D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-2883455159271340235}]
07-12 11:00:04.127 32757-349/com.mobility.mobilityindia V/FA: Using measurement service
07-12 11:00:04.127 32757-349/com.mobility.mobilityindia V/FA: Connecting to remote service
07-12 11:00:04.203 32757-375/com.mobility.mobilityindia I/OpenGLRenderer: Initialized EGL, version 1.4
07-12 11:00:04.203 32757-375/com.mobility.mobilityindia D/OpenGLRenderer: Swap behavior 1
07-12 11:00:04.204 32757-375/com.mobility.mobilityindia W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
07-12 11:00:04.204 32757-375/com.mobility.mobilityindia D/OpenGLRenderer: Swap behavior 0
07-12 11:00:04.237 32757-349/com.mobility.mobilityindia W/GooglePlayServicesUtil: Google Play services out of date. Requires 11020000 but found 10930470
07-12 11:00:04.239 32757-349/com.mobility.mobilityindia V/FA: Activity resumed, time: 4080269
07-12 11:00:04.267 32757-349/com.mobility.mobilityindia V/FA: Processing queued up service tasks: 4
07-12 11:00:04.267 32757-349/com.mobility.mobilityindia E/FA: Discarding data. Failed to send app launch
07-12 11:00:04.267 32757-349/com.mobility.mobilityindia E/FA: Failed to get app instance id
07-12 11:00:04.268 32757-349/com.mobility.mobilityindia E/FA: Failed to send current screen to service
07-12 11:00:04.268 32757-349/com.mobility.mobilityindia E/FA: Discarding data. Failed to send event to service
07-12 11:00:04.683 32757-375/com.mobility.mobilityindia D/EGL_emulation: eglCreateContext: 0xa3ddf6c0: maj 2 min 0 rcv 2
07-12 11:00:04.706 32757-375/com.mobility.mobilityindia D/EGL_emulation: eglMakeCurrent: 0xa3ddf6c0: ver 2 0 (tinfo 0x94938720)
07-12 11:00:04.996 32757-32757/com.mobility.mobilityindia I/Choreographer: Skipped 63 frames! The application may be doing too much work on its main thread.
07-12 11:00:05.352 32757-375/com.mobility.mobilityindia W/android.hardware.graphics.mapper#2.0::Mapper: getService: found null hwbinder interface
07-12 11:00:05.354 32757-375/com.mobility.mobilityindia I/vndksupport: sphal namespace is not configured for this process. Loading /system/lib/hw/gralloc.ranchu.so from the current namespace instead.
07-12 11:00:05.415 32757-375/com.mobility.mobilityindia D/EGL_emulation: eglMakeCurrent: 0xa3ddf6c0: ver 2 0 (tinfo 0x94938720)
07-12 11:00:05.459 32757-32766/com.mobility.mobilityindia W/zygote: Suspending all threads took: 22.660ms
07-12 11:00:06.603 32757-32757/com.mobility.mobilityindia W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
07-12 11:00:06.604 32757-32757/com.mobility.mobilityindia I/Choreographer: Skipped 95 frames! The application may be doing too much work on its main thread.
07-12 11:00:06.722 32757-349/com.mobility.mobilityindia V/FA: Processing queued up service tasks: 0
07-12 11:00:07.035 32757-32766/com.mobility.mobilityindia W/zygote: Suspending all threads took: 70.350ms
07-12 11:00:14.270 32757-349/com.mobility.mobilityindia V/FA: Session started, time: 4090862
07-12 11:00:14.417 32757-349/com.mobility.mobilityindia D/FA: Logging event (FE): session_start(_s), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-2883455159271340235}]
07-12 11:00:14.503 32757-349/com.mobility.mobilityindia V/FA: Using measurement service
07-12 11:00:14.503 32757-349/com.mobility.mobilityindia V/FA: Connecting to remote service
07-12 11:00:14.515 32757-349/com.mobility.mobilityindia W/GooglePlayServicesUtil: Google Play services out of date. Requires 11020000 but found 10930470
07-12 11:00:14.516 32757-32757/com.mobility.mobilityindia W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
07-12 11:00:14.523 32757-349/com.mobility.mobilityindia V/FA: Processing queued up service tasks: 1
07-12 11:00:14.524 32757-349/com.mobility.mobilityindia E/FA: Discarding data. Failed to send event to service
07-12 11:00:23.832 32757-32764/com.mobility.mobilityindia I/zygote: Do partial code cache collection, code=27KB, data=30KB
07-12 11:00:23.833 32757-32764/com.mobility.mobilityindia I/zygote: After code cache collection, code=27KB, data=30KB
07-12 11:00:23.833 32757-32764/com.mobility.mobilityindia I/zygote: Increasing code cache capacity to 128KB
07-12 11:00:28.473 32757-32766/com.mobility.mobilityindia W/zygote: Suspending all threads took: 5.207ms
07-12 11:00:29.992 32757-32766/com.mobility.mobilityindia W/zygote: Suspending all threads took: 9.147ms
07-12 11:00:32.512 32757-32766/com.mobility.mobilityindia W/zygote: Suspending all threads took: 8.891ms
07-12 11:00:33.517 32757-32766/com.mobility.mobilityindia I/zygote: WaitForGcToComplete blocked for 29.572ms for cause ObjectsAllocated
07-12 11:00:33.557 32757-32766/com.mobility.mobilityindia W/zygote: Suspending all threads took: 39.021ms
07-12 11:00:38.023 32757-32766/com.mobility.mobilityindia W/zygote: Suspending all threads took: 6.484ms
07-12 11:00:44.248 32757-32764/com.mobility.mobilityindia I/zygote: Do partial code cache collection, code=45KB, data=46KB
07-12 11:00:44.251 32757-32764/com.mobility.mobilityindia I/zygote: After code cache collection, code=45KB, data=46KB
07-12 11:00:44.251 32757-32764/com.mobility.mobilityindia I/zygote: Increasing code cache capacity to 256KB
If you are trying to run signup activity alone then add an attribute in your manifest-
<activity android:name=".Signup"
android:exported="true"/>
Try removing editor metadata directory .idea/ inside the root directory of the project and restarting android studio.

Unable to get advertising id

While running the demo (https://github.com/androidthings/doorbell) on my respberry PI, I run into error like the following:
01-01 00:11:00.830 5672-5672/com.company.androidthings.doorbell I/CameraManagerGlobal: Connecting to camera service
01-01 00:11:00.835 5672-5672/com.company.androidthings.doorbell D/DoorbellCamera: Using camera id 0
01-01 00:11:00.853 5672-5723/com.company.androidthings.doorbell D/DoorbellCamera: Opened camera.
01-01 00:11:00.995 5672-5715/com.company.androidthings.doorbell I/FA: This instance being marked as an uploader
01-01 00:11:01.122 5672-5715/com.company.androidthings.doorbell D/FA: Unable to get advertising id: com.google.android.gms.common.GooglePlayServicesNotAvailableException: com.google.android.gms.measurement.internal.zzt.zzlx(Unknown Source)
01-01 00:11:01.253 5672-5732/com.company.androidthings.doorbell D/FirebaseInstanceId: background sync failed: SERVICE_NOT_AVAILABLE, retry in 10s
The following is the method I tried:
I did some research and find the following relevant post:
adjust/unity_sdk#88
Following the instruction to install play service with android SDK manage tool (using android studio). Clear the project. Rebuild. Install the new apk into respberry PI but still have the same error log.
I also checked on the firebase console, no picture was updated. Even from the android monitor, it was confirmed that button was pushed camera works as expected.
Regarding internet connection, I installed another app on the raspberry PI. It successfully sent the info to the server. It confirms the connectivity works as expected.
Any suggestion?
The log message you are seeing is from FirebaseAnalytics (the "FA" in the log tag), and makes sense since analytics is not enabled in this sample (unless you added code to enable it). Notice this is also a debug message (the "D" in the log tag) and not an error/warning.
This should not be affecting the Doorbell sample, so if you are not able to get the images uploaded properly to Firebase there is likely something else wrong with the project configuration and perhaps there are other clues deeper in the log.
It turns out that configuration is not appropriate. It uses the new SDK path which doesn't install google play service. Once I switch to the default SDK path of system which installed google play service. The logs looks different event though that message "Unable to get advertising id:" is still there. It seems (from FA log) the app can talk to the server.
04-24 15:22:53.659 16642-16642/? I/art: Late-enabling -Xcheck:jni
04-24 15:22:53.661 16642-16642/? W/art: Unknown instruction set features for ARM CPU variant (generic) using conservative defaults
04-24 15:22:53.709 16642-16649/? I/art: Debugger is no longer active
04-24 15:22:53.709 16642-16649/? I/art: Starting a blocking GC Instrumentation
04-24 15:22:54.610 16642-16642/? W/System: ClassLoader referenced unknown path: /data/app/com.company.androidthings.doorbell-1/lib/arm
04-24 15:22:54.678 16642-16642/com.company.androidthings.doorbell D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
04-24 15:22:54.712 16642-16642/com.company.androidthings.doorbell W/InstanceID/Rpc: Found 10007
04-24 15:22:54.723 16642-16642/com.company.androidthings.doorbell D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
04-24 15:22:54.812 16642-16642/com.company.androidthings.doorbell I/FA: App measurement is starting up, version: 9452
04-24 15:22:54.812 16642-16642/com.company.androidthings.doorbell I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
04-24 15:22:54.812 16642-16642/com.company.androidthings.doorbell D/FA: Debug logging enabled
04-24 15:22:54.812 16642-16642/com.company.androidthings.doorbell D/FA: AppMeasurement singleton hash: 202124672
04-24 15:22:54.906 16642-16642/com.company.androidthings.doorbell V/FA: Collection enabled
04-24 15:22:54.907 16642-16642/com.company.androidthings.doorbell V/FA: App package, google app id: com.company.androidthings.doorbell, 1:821276198771:android:044f9c86291658f3
04-24 15:22:54.980 16642-16642/com.company.androidthings.doorbell V/FA: Registered activity lifecycle callback
04-24 15:22:54.986 16642-16642/com.company.androidthings.doorbell I/FirebaseInitProvider: FirebaseApp initialization successful
04-24 15:22:54.989 16642-16642/com.company.androidthings.doorbell I/InstantRun: starting instant run server: is main process
04-24 15:22:55.000 16642-16666/com.company.androidthings.doorbell V/FA: State of service unknown
04-24 15:22:55.000 16642-16666/com.company.androidthings.doorbell V/FA: Checking service availability
04-24 15:22:55.015 16642-16666/com.company.androidthings.doorbell W/GooglePlayServicesUtil: Google Play Store is missing.
04-24 15:22:55.015 16642-16666/com.company.androidthings.doorbell W/FA: Service invalid
04-24 15:22:55.016 16642-16666/com.company.androidthings.doorbell V/FA: Setting useService: false
04-24 15:22:55.019 16642-16666/com.company.androidthings.doorbell V/FA: Using local app measurement service
04-24 15:22:55.449 16642-16642/com.company.androidthings.doorbell V/FA: onActivityCreated
04-24 15:22:55.449 16642-16642/com.company.androidthings.doorbell D/DoorbellActivity: Doorbell Activity created.
04-24 15:22:55.450 16642-16642/com.company.androidthings.doorbell D/DoorbellActivity: No permission
04-24 15:22:55.502 16642-16666/com.company.androidthings.doorbell V/FA: Activity resumed, time: 331914987
04-24 15:22:55.530 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is starting up
04-24 15:22:55.563 16642-16642/com.company.androidthings.doorbell V/FA: Bound to IMeasurementService interface
04-24 15:22:55.565 16642-16666/com.company.androidthings.doorbell V/FA: Connected to service
04-24 15:22:55.566 16642-16666/com.company.androidthings.doorbell V/FA: Processing queued up service tasks: 1
04-24 15:22:59.196 16642-16666/com.company.androidthings.doorbell W/art: Long monitor contention with owner pool-2-thread-1 (16678) at long com.android.org.conscrypt.NativeCrypto.RSA_generate_key_ex(int, byte[])(NativeCrypto.java:-2) waiters=0 in java.lang.String com.google.firebase.iid.zzg.get(java.lang.String, java.lang.String) for 3.621s
04-24 15:22:59.236 16642-16666/com.company.androidthings.doorbell I/FA: This instance being marked as an uploader
04-24 15:22:59.696 16642-16666/com.company.androidthings.doorbell D/FA: Unable to get advertising id: com.google.android.gms.common.GooglePlayServicesNotAvailableException: com.google.android.gms.measurement.internal.zzt.zzlx(Unknown Source)
04-24 15:22:59.711 16642-16666/com.company.androidthings.doorbell D/FA: Setting user property: _fot, 1493049600000
04-24 15:22:59.719 16642-16666/com.company.androidthings.doorbell D/FA: User property set: _fot, 1493049600000
04-24 15:22:59.723 16642-16666/com.company.androidthings.doorbell V/FA: Logging event: origin=auto,name=_f,params=Bundle[{_c=1}]
04-24 15:22:59.790 16642-16666/com.company.androidthings.doorbell V/FA: Saving event, name, data size: _f, 22
04-24 15:22:59.792 16642-16666/com.company.androidthings.doorbell V/FA: Event recorded: Event{appId='com.company.androidthings.doorbell', name='_f', params=Bundle[{_c=1, _o=auto}]}
04-24 15:22:59.802 16642-16666/com.company.androidthings.doorbell V/FA: Upload scheduled in approximately ms: 14436
04-24 15:22:59.807 16642-16666/com.company.androidthings.doorbell V/FA: Background event processing time, ms: 84
04-24 15:22:59.808 16642-16666/com.company.androidthings.doorbell V/FA: Logging event: origin=auto,name=_e,params=Bundle[{_et=1}]
04-24 15:22:59.840 16642-16666/com.company.androidthings.doorbell V/FA: Saving event, name, data size: _e, 23
04-24 15:22:59.841 16642-16666/com.company.androidthings.doorbell V/FA: Event recorded: Event{appId='com.company.androidthings.doorbell', name='_e', params=Bundle[{_o=auto, _et=1}]}
04-24 15:22:59.847 16642-16666/com.company.androidthings.doorbell V/FA: Upload scheduled in approximately ms: 14390
04-24 15:22:59.853 16642-16666/com.company.androidthings.doorbell V/FA: Background event processing time, ms: 45
04-24 15:23:04.241 16642-16666/com.company.androidthings.doorbell V/FA: Inactivity, disconnecting from AppMeasurementService
04-24 15:23:04.276 16642-16642/com.company.androidthings.doorbell V/FA: onUnbind called for intent. action: com.google.android.gms.measurement.START
04-24 15:23:04.277 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is shutting down
04-24 15:23:05.504 16642-16666/com.company.androidthings.doorbell V/FA: Session started, time: 331924989
04-24 15:23:05.550 16642-16666/com.company.androidthings.doorbell I/FA: Tag Manager is not found and thus will not be used
04-24 15:23:05.552 16642-16666/com.company.androidthings.doorbell D/FA: Logging event (FE): _s, Bundle[{_o=auto}]
04-24 15:23:05.555 16642-16666/com.company.androidthings.doorbell V/FA: Using local app measurement service
04-24 15:23:05.562 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is starting up
04-24 15:23:05.564 16642-16642/com.company.androidthings.doorbell V/FA: Bound to IMeasurementService interface
04-24 15:23:05.564 16642-16666/com.company.androidthings.doorbell V/FA: Connected to service
04-24 15:23:05.565 16642-16666/com.company.androidthings.doorbell V/FA: Processing queued up service tasks: 1
04-24 15:23:05.572 16642-16666/com.company.androidthings.doorbell V/FA: Logging event: origin=auto,name=_s,params=Bundle[{_o=auto}]
04-24 15:23:05.594 16642-16666/com.company.androidthings.doorbell V/FA: Saving event, name, data size: _s, 14
04-24 15:23:05.596 16642-16666/com.company.androidthings.doorbell V/FA: Event recorded: Event{appId='com.company.androidthings.doorbell', name='_s', params=Bundle[{_o=auto}]}
04-24 15:23:05.655 16642-16666/com.company.androidthings.doorbell V/FA: Upload scheduled in approximately ms: 14850
04-24 15:23:05.660 16642-16666/com.company.androidthings.doorbell V/FA: Background event processing time, ms: 89
04-24 15:23:10.577 16642-16666/com.company.androidthings.doorbell V/FA: Inactivity, disconnecting from AppMeasurementService
04-24 15:23:10.616 16642-16642/com.company.androidthings.doorbell V/FA: onUnbind called for intent. action: com.google.android.gms.measurement.START
04-24 15:23:10.618 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is shutting down
04-24 15:23:20.547 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementReceiver got: com.google.android.gms.measurement.UPLOAD
04-24 15:23:20.562 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is starting up
04-24 15:23:20.564 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService called. startId, action: 1, com.google.android.gms.measurement.UPLOAD
04-24 15:23:20.588 16642-16666/com.company.androidthings.doorbell V/FA: Fetching remote configuration: com.company.androidthings.doorbell
04-24 15:23:20.598 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService processed last upload request
04-24 15:23:20.598 16642-16642/com.company.androidthings.doorbell V/FA: Local AppMeasurementService is shutting down
04-24 15:23:20.601 16642-17004/com.company.androidthings.doorbell D/NetworkSecurityConfig: No Network Security Config specified, using platform default
04-24 15:23:21.835 16642-16666/com.company.androidthings.doorbell V/FA: Parsed config. version, gmp_app_id: 1492543680583000, 1:821276198771:android:044f9c86291658f3
04-24 15:23:21.841 16642-16666/com.company.androidthings.doorbell V/FA: Successfully fetched config. Got network response. code, size: 200, 52
04-24 15:23:21.892 16642-16666/com.company.androidthings.doorbell V/FA: event, affected audience count: _f, 0
04-24 15:23:21.896 16642-16666/com.company.androidthings.doorbell V/FA: event, affected audience count: _e, 0
04-24 15:23:21.899 16642-16666/com.company.androidthings.doorbell V/FA: event, affected audience count: _s, 0
04-24 15:23:21.901 16642-16666/com.company.androidthings.doorbell V/FA: property, affected audience count: _fot, 0
04-24 15:23:21.924 16642-16666/com.company.androidthings.doorbell V/FA: Saving bundle, size: 301
04-24 15:23:21.947 16642-16666/com.company.androidthings.doorbell V/FA: Uploading data. app, uncompressed size, data: com.company.androidthings.doorbell, 356,
batch {
bundle {
protocol_version: 1
platform: android
gmp_version: 9452
uploading_gmp_version: 9452
gmp_app_id: 1:821276198771:android:044f9c86291658f3
app_id: com.company.androidthings.doorbell
app_version: 1.0
app_version_major: 1
firebase_instance_id: eNnLI0cB484
dev_cert_hash: -8029454304837808102
app_store: manual_install
upload_timestamp_millis: 1493047401878
start_timestamp_millis: 1493047379237
end_timestamp_millis: 1493047385505
app_instance_id: 570e158a1616db1ea428bad0ac67c079
os_version: 7.0
device_model: iot_rpi3
user_default_language: en-us
time_zone_offset_minutes: 0
bundle_sequential_index: 1
service_upload: false
user_property {
set_timestamp_millis: 1493047379237
name: _fot
int_value: 1493049600000
}
event {
name: _f
timestamp_millis: 1493047379237
previous_timestamp_millis: 0
param {
name: _c
int_value: 1
}
param {
name: _o
string_value: auto
}
}
event {
name: _e
timestamp_millis: 1493047379237
previous_timestamp_millis: 0
param {
name: _o
string_value: auto
}
param {
name: _et
int_value: 1
}
}
event {
name: _s
timestamp_millis: 1493047385505
previous_timestamp_millis: 0
param {
name: _o
string_value: auto
}
}
}
}
04-24 15:23:21.950 16642-17004/com.company.androidthings.doorbell V/FA: Uploading data. size: 315
04-24 15:23:22.025 16642-16666/com.company.androidthings.doorbell V/FA: Upload scheduled in approximately ms: 3599959
04-24 15:23:22.030 16642-16666/com.company.androidthings.doorbell V/FA: Successful upload. Got network response. code, size: 204, 0

'Unfortunately, app has stopped' is shown twice on the device and 'Application terminated' in android studio with no error being shown

I am developing an app using Android Studio.
The problem is that app gets crashed twice within few minutes of running it and besides Application terminated. and normal logs no error is shown in the logcat.
Here's complete logcat:
02/12 22:31:34: Launching app
Cold swapped changes.
$ adb shell am start -n "com.abc.xxx/com.abc.xxx.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 13399 on device micromax-micromax_aq4502-2864004C04884I2
I/art: Late-enabling -Xcheck:jni
W/System: ClassLoader referenced unknown path: /data/app/com.abc.xxx-2/lib/arm
I/InstantRun: Instant Run Runtime started. Android package is com.abc.xxx, real application class is null.
W/System: ClassLoader referenced unknown path: /data/app/com.abc.xxx-2/lib/arm
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
I/art: Background sticky concurrent mark sweep GC freed 11281(1218KB) AllocSpace objects, 22(696KB) LOS objects, 15% free, 5MB/6MB, paused 13.077ms total 70.659ms
I/DynamiteModule: Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:0
I/DynamiteModule: Selected local version of com.google.android.gms.flags
W/DynamiteModule: Local module descriptor class for com.google.android.gms.crash not found.
I/DynamiteModule: Considering local module com.google.android.gms.crash:0 and remote module com.google.android.gms.crash:4
I/DynamiteModule: Selected remote version of com.google.android.gms.crash, version >= 4
W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000012/n/armeabi-v7a
W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000012/n/armeabi
I/FirebaseCrashApiImpl: FirebaseCrashApiImpl created by ClassLoader p[DexPathList[[zip file "/data/data/com.google.android.gms/app_chimera/m/00000012/DynamiteModulesC_GmsCore_prodmnc_hdpi_release.apk"],nativeLibraryDirectories=[/data/user/0/com.google.android.gms/app_chimera/m/00000012/n/armeabi-v7a, /data/user/0/com.google.android.gms/app_chimera/m/00000012/n/armeabi, /vendor/lib, /system/lib]]]
I/DynamiteModule: Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:0
I/DynamiteModule: Selected local version of com.google.android.gms.flags
W/DynamiteModule: Local module descriptor class for com.google.android.gms.crash not found.
I/FA: App measurement is starting up, version: 10084
I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
D/FA: Debug-level message logging enabled
D/FA: AppMeasurement singleton hash: 198168520
V/FA: Collection enabled
V/FA: App package, google app id: com.abc.xxx, 1:987905869088:android:e7f50263e7b8aa58
I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.getsportalapp.sportal
V/FA: Registered activity lifecycle callback
I/FirebaseCrash: FirebaseCrash reporting initialized com.google.android.gms.internal.zzbks#e551d72
I/FirebaseInitProvider: FirebaseApp initialization successful
V/FA: Using measurement service
V/FA: Connecting to remote service
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
W/com.facebook.appevents.AppEventsLogger: activateApp events are being logged automatically. There's no need to call activateApp explicitly, this is safe to remove.
I/GAC: Building GoogleApiClient
I/CrashlyticsCore: Initializing Crashlytics 2.3.15.167
V/FA: Connection attempt already in progress
V/FA: Activity resumed, time: 824779068
D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: false
D/signedIn: onAuthStateChanged:signed_in:ShXMXdc5kHUQZWG3lGudJtt2
I/DynamiteModule: Considering local module com.google.android.gms.firebase_database:4 and remote module com.google.android.gms.firebase_database:5
I/DynamiteModule: Selected remote version of com.google.android.gms.firebase_database, version >= 5
I/OpenGLRenderer: Initialized EGL, version 1.4
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
E/RecyclerView: No adapter attached; skipping layout
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 2
E/RecyclerView: No adapter attached; skipping layout
D/getInvitation: getInvitation: no deep link found.
D/called: again
D/cLat: 2.8418744
D/cLng: 8.7791019
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
W/PersistentConnection: pc_0 - Using an unspecified index. Consider adding '".indexOn": "g"' at geofire to your security and Firebase Database rules for better performance
W/PersistentConnection: pc_0 - Using an unspecified index. Consider adding '".indexOn": "g"' at geofire to your security and Firebase Database rules for better performance
W/PersistentConnection: pc_0 - Using an unspecified index. Consider adding '".indexOn": "g"' at geofire to your security and Firebase Database rules for better performance
W/PersistentConnection: pc_0 - Using an unspecified index. Consider adding '".indexOn": "g"' at geofire to your security and Firebase Database rules for better performance
W/Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000010/n/armeabi
D/DynamitePackage: Instantiated singleton DynamitePackage.
D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
I/DynamiteModule: Considering local module com.google.android.gms.piccard.dynamite:0 and remote module com.google.android.gms.piccard.dynamite:12
I/DynamiteModule: Selected remote version of com.google.android.gms.piccard.dynamite, version >= 12
W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000010/n/armeabi
W/VideoCapabilities: Unrecognized profile/level 32768/2 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
I/Ads: Starting ad request.
I/WebViewFactory: Loading com.google.android.webview version 53.0.2785.124 (code 278512400)
D/diffAnother: -6283000
I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.ServiceWorkerControllerAdapter>
I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.ServiceWorkerControllerAdapter>
I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.TokenBindingManagerAdapter>
I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.TokenBindingManagerAdapter>
I/cr_LibraryLoader: Time to load native libraries: 6 ms (timestamps 5738-5744)
I/cr_LibraryLoader: Expected native library version number "53.0.2785.124", actual native library version number "53.0.2785.124"
V/WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {611ead6}
I/cr_LibraryLoader: Expected native library version number "53.0.2785.124", actual native library version number "53.0.2785.124"
I/chromium: [INFO:library_loader_hooks.cc(151)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
W/cr_media: Requires BLUETOOTH permission
W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
I/cr_Ime: ImeThread is not enabled.
E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13399
I/DynamiteModule: Considering local module com.google.android.gms.tagmanager:8 and remote module com.google.android.gms.tagmanager:9
I/DynamiteModule: Selected remote version of com.google.android.gms.tagmanager, version >= 9
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
W/GoogleTagManager: No container asset found in /assets/containers. Checking top level /assets directory for container assets.
W/GoogleTagManager: Tag Manager's event handler WILL NOT be installed (no container loaded)
I/GoogleTagManager: Tag Manager initilization took 213ms
V/FA: Using measurement service
V/FA: Connecting to remote service
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 1
I/Ads: Scheduling ad refresh 45000 milliseconds from now.
W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
I/cr_Ime: ImeThread is not enabled.
I/Ads: Ad finished loading.
W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13399
I/chromium: [INFO:CONSOLE(0)] "Document was loaded from Application Cache with manifest https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.appcache", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
I/chromium: [INFO:CONSOLE(0)] "Application Cache Checking event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
I/chromium: [INFO:CONSOLE(0)] "Application Cache NoUpdate event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
D/diffAnother: 1129000
D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
I/Ads: Starting ad request.
D/diffAnother: -6300000
W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
I/cr_Ime: ImeThread is not enabled.
W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13399
I/Ads: Scheduling ad refresh 45000 milliseconds from now.
I/Ads: Ad finished loading.
V/FA: Using measurement service
V/FA: Connecting to remote service
D/FA: Logging event (FE): _e, Bundle[{_o=auto, _et=29568, _sc=MainActivity, _si=-6311178554893906199}]
V/FA: Using measurement service
V/FA: Connection attempt already in progress
V/FA: Activity paused, time: 824808635
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 2
W/com.facebook.appevents.AppEventsLogger: activateApp events are being logged automatically. There's no need to call activateApp explicitly, this is safe to remove.
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
D/call1: called
D/call2: called
D/call1: called
D/call2: called
D/error1: ERROR1
D/error1: ERROR1
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
V/RenderScript: 0xb8457a88 Launching thread(s), CPUs 4
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
V/FA: Inactivity, disconnecting from the service
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
I/Ads: Ad is not visible. Not refreshing ad.
I/Ads: Scheduling ad refresh 60000 milliseconds from now.
I/Ads: Ad is not visible. Not refreshing ad.
I/Ads: Scheduling ad refresh 60000 milliseconds from now.
Application terminated.
I tried integrating crashlytics but even it doesn't show any error when the app crashes in this manner.
The question is how will I be able to fix the error if I don't even know what the error is?
Please help me with this.
I think the issue is related to your ad view.
In last line it is showing that ad is not visible.

Categories

Resources