Google Maps CreatorImpl not initialized properly error - android

having some trouble with my app crashing after extended periods of inactivity. It appears to be with something saying CreatorImpl not initialized properly.
Here is my full logcat response:
.... java.lang.IllegalStateException: CreatorImpl not initialized properly.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2452)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2535)
at android.app.ActivityThread.access$900(ActivityThread.java:155)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1380)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:152)
at android.app.ActivityThread.main(ActivityThread.java:5497)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.IllegalStateException: CreatorImpl not initialized properly.
at com.google.maps.api.android.lib6.common.l.a(:com.google.android.gms.DynamiteModulesB:14)
at com.google.android.gms.maps.internal.CreatorImpl.newMapViewDelegate(:com.google.android.gms.DynamiteModulesB:26)
at com.google.android.gms.maps.internal.g.onTransact(:com.google.android.gms.DynamiteModulesB:51)
at android.os.Binder.transact(Binder.java:401)
at uni.newMapViewDelegate(:com.google.android.gms:3)
at com.google.android.gms.maps.internal.CreatorImpl.newMapViewDelegate(:com.google.android.gms:1)
at unh.onTransact(:com.google.android.gms:22)
at android.os.Binder.transact(Binder.java:401)
at com.google.android.gms.internal.zzed.zza(Unknown Source)
at com.google.android.gms.maps.internal.zzf.zza(Unknown Source)
at com.google.android.gms.maps.MapView$zzb.zza(Unknown Source)
at com.google.android.gms.dynamic.zza.zza(Unknown Source)
at com.google.android.gms.dynamic.zza.onCreate(Unknown Source)
at com.google.android.gms.maps.MapView.onCreate(Unknown Source)
at com.application.fragments.nav_drawer_directory.c_attending.FragmentWeekendExp.onCreateView(FragmentWeekendExp.java:109)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:2192)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1299)
at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1528)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1595)
at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2900)
at android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:201)
at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:603)
at android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:178)
at com.application.MainActivity.onStart(MainActivity.java:124)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1277)
at android.app.Activity.performStart(Activity.java:6306)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2415)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2535) 
at android.app.ActivityThread.access$900(ActivityThread.java:155) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1380) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:152) 
at android.app.ActivityThread.main(ActivityThread.java:5497) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2452)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2535)
at android.app.ActivityThread.access$900(ActivityThread.java:155)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1380)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:152)
at android.app.ActivityThread.main(ActivityThread.java:5497)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.IllegalStateException: CreatorImpl not initialized properly.
at com.google.maps.api.android.lib6.common.l.a(:com.google.android.gms.DynamiteModulesB:14)
at com.google.android.gms.maps.internal.CreatorImpl.newMapViewDelegate(:com.google.android.gms.DynamiteModulesB:26)
at com.google.android.gms.maps.internal.g.onTransact(:com.google.android.gms.DynamiteModulesB:51)
at android.os.Binder.transact(Binder.java:401)
at uni.newMapViewDelegate(:com.google.android.gms:3)
at com.google.android.gms.maps.internal.CreatorImpl.newMapViewDelegate(:com.google.android.gms:1)
at unh.onTransact(:com.google.android.gms:22)
at android.os.Binder.transact(Binder.java:401)
at com.google.android.gms.internal.zzed.zza(Unknown Source)
at com.google.android.gms.maps.internal.zzf.zza(Unknown Source)
at com.google.android.gms.maps.MapView$zzb.zza(Unknown Source)
at com.google.android.gms.dynamic.zza.zza(Unknown Source)
at com.google.android.gms.dynamic.zza.onCreate(Unknown Source)
at com.google.android.gms.maps.MapView.onCreate(Unknown Source)
at com.application.fragments.nav_drawer_directory.c_attending.FragmentWeekendExp.onCreateView(FragmentWeekendExp.java:109)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:2192)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1299)
at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1528)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1595)
at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2900)
at android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:201)
at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:603)
at android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:178)
at com.application.MainActivity.onStart(MainActivity.java:124)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1277)
at android.app.Activity.performStart(Activity.java:6306)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2415)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2535) 
at android.app.ActivityThread.access$900(ActivityThread.java:155) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1380) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:152) 
at android.app.ActivityThread.main(ActivityThread.java:5497) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
The point of where it is crashing is here:
#Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View parentView = inflater.inflate(R.layout.ad_weekendexp_frag, container, false);
//Setup map, using a custom one to prevent scrollview from scrolling when the user is
//touching down on the map
mMapView = (CustomMapView) parentView.findViewById(R.id.wkndExpMapview);
(--> crash here) mMapView.onCreate(savedInstanceState);
mMapView.getMapAsync(this);
//Initialize Views
findViews(parentView);
//Set up clickables, any that may be used here
setupClickables();
//Sets up the recycler view which will display the list which has details of what to expect
//on any given service on the weekend
setupSvcDescipList();
//Prevent the background from being transparent
parentView.setBackgroundColor(ContextCompat.getColor(getContext(), R.color.colorSecondary));
return parentView;
Also, as a side note, I have also overridden onCreate(), onPause(), ect as per guidance for setting up a mapview. All help is appreciated! Thanks

Related

android getting null pointer exception at java.util.Objects.requireNonNull(Objects.java:203)

I'm reading writing string arrays and displaying them in recycler view.
Before displaying them i'm reversing the order using
Collections.reverse(Arrays.asList(FilePathStrings));
Following is exception that I'm getting:
java.lang.NullPointerException
at java.util.Objects.requireNonNull(Objects.java:203)
at java.util.Arrays$ArrayList.<init>(Arrays.java:3826)
at java.util.Arrays.asList(Arrays.java:3813)
at com.example.soberapps.nightcamera.b.c.a(Unknown Source)
at android.support.v4.app.i.b(Unknown Source)
at android.support.v4.app.o.a(Unknown Source)
at android.support.v4.app.o.e(Unknown Source)
at android.support.v4.app.o.a(Unknown Source)
at android.support.v4.app.c.d(Unknown Source)
at android.support.v4.app.o.b(Unknown Source)
at android.support.v4.app.o.a(Unknown Source)
at android.support.v4.app.o.b(Unknown Source)
at android.support.v4.app.o.h(Unknown Source)
at android.support.v4.app.o$1.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at androidx.test.espresso.base.Interrogator.a(Interrogator.java:19)
at androidx.test.espresso.base.UiControllerImpl.a(UiControllerImpl.java:164)
at androidx.test.espresso.base.UiControllerImpl.a(UiControllerImpl.java:156)
at androidx.test.espresso.base.UiControllerImpl.a(UiControllerImpl.java:34)
at androidx.test.espresso.action.MotionEvents.a(MotionEvents.java:75)
at androidx.test.espresso.action.MotionEvents.a(MotionEvents.java:50)
at androidx.test.espresso.action.Tap.c(Tap.java:8)
at androidx.test.espresso.action.Tap.a(Tap.java:18)
at androidx.test.espresso.action.Tap$1.b(Tap.java:3)
at androidx.test.espresso.action.GeneralClickAction.perform(GeneralClickAction.java:22)
at androidx.test.espresso.ViewInteraction$SingleExecutionViewAction.perform(ViewInteraction.java:9)
at androidx.test.espresso.ViewInteraction.a(ViewInteraction.java:78)
at androidx.test.espresso.ViewInteraction.a(ViewInteraction.java:94)
at androidx.test.espresso.ViewInteraction$1.call(ViewInteraction.java:3)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6316)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
Error reporting crash
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference
at android.os.Parcel.readException(Parcel.java:1689)
at android.os.Parcel.readException(Parcel.java:1636)
at android.app.ActivityManagerProxy.handleApplicationCrash(ActivityManagerProxy.java:5217)
at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:97)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1063)
Arrays.asList(null) throws this exception. Your parameter (FilePathStrings) equals to null.

kotlin android - Xposed IllegalArgumentException 'android.content.res.CoollifeUITpedArray'

How to solve this error
Xposed: java.lang.IllegalArgumentException: Cannot transfer object from class android.content.res.CoollifeUITypedArray to class android.content.res.XResources$XTypedArray
E/Xposed: java.lang.IllegalArgumentException: Cannot transfer object from class android.content.res.CoollifeUITypedArray to class android.content.res.XResources$XTypedArray
at de.robv.android.xposed.XposedBridge.setObjectClass(XposedBridge.java:468)
at de.robv.android.xposed.XposedInit$10.afterHookedMethod(XposedInit.java:353)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:348)
at android.content.res.TypedArray.<init>(<Xposed>)
at android.content.res.CoollifeUITypedArray.<init>(CoollifeUITypedArray.java:14)
at android.content.res.TypedArray.obtain(TypedArray.java:66)
at android.content.res.Resources$Theme.obtainStyledAttributes(Resources.java:1838)
at android.content.Context.obtainStyledAttributes(Context.java:537)
at android.transition.Transition.<init>(Transition.java:270)
at android.transition.TransitionSet.<init>(TransitionSet.java:85)
at android.transition.TransitionInflater.createTransitionFromXml(TransitionInflater.java:169)
at android.transition.TransitionInflater.inflateTransition(TransitionInflater.java:79)
at com.android.internal.policy.PhoneWindow.getTransition(PhoneWindow.java:4237)
at com.android.internal.policy.PhoneWindow.installDecor(PhoneWindow.java:4198)
at com.android.internal.policy.PhoneWindow.getDecorView(PhoneWindow.java:2031)
at android.support.v7.app.AppCompatDelegateImplV9.createSubDecor(AppCompatDelegateImplV9.java:379)
at android.support.v7.app.AppCompatDelegateImplV9.ensureSubDecor(AppCompatDelegateImplV9.java:328)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:289)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
at com.info.edudharma.activities.Activity_Main.onCreate(Activity_Main.java:125)
at android.app.Activity.performCreate(Activity.java:6309)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1114)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2537)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2672)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1495)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5769)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:861)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:751)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)

com.google.android.gms.maps.SupportMapFragment in android google map not working in some lollipop devices

Error as follows:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dapl.stockup/com.dapl.stockup.activity.MapsActivity}: android.view.InflateException: Binary XML file line #70: Error inflating class fragment
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2332)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2394)
at android.app.ActivityThread.access$800(ActivityThread.java:154)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5276)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)
Caused by: android.view.InflateException: Binary XML file line #70: Error inflating class fragment
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:767)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:810)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:813)
at android.view.LayoutInflater.inflate(LayoutInflater.java:508)
at android.view.LayoutInflater.inflate(LayoutInflater.java:418)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:378)
at android.app.Activity.setContentView(Activity.java:2158)
at com.dapl.stockup.activity.MapsActivity.onCreate(MapsActivity.java:50)
at android.app.Activity.performCreate(Activity.java:6041)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1109)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2285)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2394) 
at android.app.ActivityThread.access$800(ActivityThread.java:154) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5276) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706) 
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Configuration android.content.res.Resources.getConfiguration()' on a null object reference
at android.view.SurfaceView.init(SurfaceView.java:231)
at android.view.SurfaceView.<init>(SurfaceView.java:193)
at maps.V.x.<init>(Unknown Source)
at maps.V.v.<init>(Unknown Source)
at maps.D.u.<init>(Unknown Source)
at maps.D.u.a(Unknown Source)
at maps.ad.ae.a(Unknown Source)
at maps.ad.t.a(Unknown Source)
at maps.ad.M.a(Unknown Source)
at wd.onTransact(:com.google.android.gms.DynamiteModulesB:107)
at android.os.Binder.transact(Binder.java:380)
at com.google.android.gms.maps.internal.IMapFragmentDelegate$zza$zza.onCreateView(Unknown Source)
at com.google.android.gms.maps.SupportMapFragment$zza.onCreateView(Unknown Source)
at com.google.android.gms.dynamic.zza$4.zzb(Unknown Source)
at com.google.android.gms.dynamic.zza.zza(Unknown Source)
at com.google.android.gms.dynamic.zza.onCreateView(Unknown Source)
at com.google.android.gms.maps.SupportMapFragment.onCreateView(Unknown Source)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:2080)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1065)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1268)
at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1370)
at android.support.v4.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2415)
at android.support.v4.app.FragmentController.onCreateView(FragmentController.java:120)
at android.support.v4.app.FragmentActivity.dispatchFragmentsOnCreateView(FragmentActivity.java:376)
at android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:33)
at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:75)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:737)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:810) 
at android.view.LayoutInflater.rInflate(LayoutInflater.java:813) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:508) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:418) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:365) 
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:378) 
at android.app.Activity.setContentView(Activity.java:2158) 
at com.dapl.stockup.activity.MapsActivity.onCreate(MapsActivity.java:50) 
at android.app.Activity.performCreate(Activity.java:6041) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1109) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2285) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2394) 
at android.app.ActivityThread.access$800(ActivityThread.java:154) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5276) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)
#Override
public void onDestroyView() {
super.onDestroyView();
FragmentManager manager = myContext.getSupportFragmentManager();
FragmentTransaction trans = manager.beginTransaction();
SupportMapFragment supportMapFragment = ((SupportMapFragment) myContext.getSupportFragmentManager().findFragmentById(R.id.map_fragment));
trans.remove(supportMapFragment);
try {
if (trans != null && supportMapFragment != null) {
trans.commit();
}
}catch (Exception ex) {}
}
I had a similar issue where it only crashes on my Xiaomi testing device. Have you tried enabling android:hardwareAccelerated="true" in the Android Manifest file. Would be something like this:
<application android:label="MyApp" android:icon="#drawable/Logo" android:theme="#style/MyTheme" android:hardwareAccelerated="true">
It did the trick for mine. No more crashing on trying to open a map :D

Firebase ArrayList issues (need to use GenericTypeIndicator?)

Connecting to my Firebase database works fine when I install my app to my phone via USB. But when I install it via the Play Store, I get issues from Firebase about my ArrayList having "generic type parameters". Check out the first line of the logcat error message below:
09-14 15:59:55.715 4843-4843/? E/UncaughtException: com.google.firebase.database.f: Class java.util.ArrayList has generic type parameters, please use GenericTypeIndicator instead
at com.google.android.gms.c.mu.b(Unknown Source)
at com.google.android.gms.c.mu.b(Unknown Source)
at com.google.android.gms.c.mu.a(Unknown Source)
at com.google.android.gms.c.mv.a(Unknown Source)
at com.google.android.gms.c.mv.a(Unknown Source)
at com.google.android.gms.c.mu.d(Unknown Source)
at com.google.android.gms.c.mu.b(Unknown Source)
at com.google.android.gms.c.mu.a(Unknown Source)
at com.google.firebase.database.b.a(Unknown Source)
at com.test.finalapp.Activities.c.a(Unknown Source)
at com.google.android.gms.c.ha.a(Unknown Source)
at com.google.android.gms.c.iv.b(Unknown Source)
at com.google.android.gms.c.jb.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:152)
at android.app.ActivityThread.main(ActivityThread.java:5507)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Any thoughts? The Google Play version was working fine the other day and now this happened! Couldn't find any solutions online...
UPDATE:
I added the following code to my proguard-rules.pro file:
-keepattributes Signature
-keepclassmembers class com.test.finalapp.Models.** {
*;
}
-keep class com.test.finalapp.CoOpStatusHolder { *; }
Things are working fine in database, but now I'm hit with the error: java.lang.RuntimeException: java.lang.NoSuchMethodException: [class android.view.View]
That error is at the top of the larger logcat error:
09-15 12:06:23.041 32250-32250/? E/UncaughtException: java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class android.view.View]
at com.firebase.ui.a.d.b(Unknown Source)
at android.support.v7.widget.em.c(Unknown Source)
at android.support.v7.widget.fe.a(Unknown Source)
at android.support.v7.widget.fe.c(Unknown Source)
at android.support.v7.widget.dl.a(Unknown Source)
at android.support.v7.widget.LinearLayoutManager.a(Unknown Source)
at android.support.v7.widget.LinearLayoutManager.a(Unknown Source)
at android.support.v7.widget.LinearLayoutManager.c(Unknown Source)
at android.support.v7.widget.RecyclerView.J(Unknown Source)
at android.support.v7.widget.RecyclerView.k(Unknown Source)
at android.support.v7.widget.RecyclerView.t(Unknown Source)
at android.support.v7.widget.RecyclerView.c(Unknown Source)
at android.support.v7.widget.eg.run(Unknown Source)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:603)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:152)
at android.app.ActivityThread.main(ActivityThread.java:5507)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.NoSuchMethodException: <init> [class android.view.View]
at java.lang.Class.getConstructor(Class.java:528)
at java.lang.Class.getConstructor(Class.java:492)
at com.firebase.ui.a.d.b(Unknown Source) 
at android.support.v7.widget.em.c(Unknown Source) 
at android.support.v7.widget.fe.a(Unknown Source) 
at android.support.v7.widget.fe.c(Unknown Source) 
at android.support.v7.widget.dl.a(Unknown Source) 
at android.support.v7.widget.LinearLayoutManager.a(Unknown Source) 
at android.support.v7.widget.LinearLayoutManager.a(Unknown Source) 
at android.support.v7.widget.LinearLayoutManager.c(Unknown Source) 
at android.support.v7.widget.RecyclerView.J(Unknown Source) 
at android.support.v7.widget.RecyclerView.k(Unknown Source) 
at android.support.v7.widget.RecyclerView.t(Unknown Source) 
at android.support.v7.widget.RecyclerView.c(Unknown Source) 
at android.support.v7.widget.eg.run(Unknown Source) 
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858) 
at android.view.Choreographer.doCallbacks(Choreographer.java:670) 
at android.view.Choreographer.doFrame(Choreographer.java:603) 
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844) 
at android.os.Handler.handleCallback(Handler.java:739) 
at android.os.Handler.dispatchMessage(Handler.java:95) 
at android.os.Looper.loop(Looper.java:152) 
at android.app.ActivityThread.main(ActivityThread.java:5507) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
09-15 12:06:23.242 32250-32250/? D/FirebaseCrashApiImpl: throwable java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class android.view.View]
--------- beginning of crash
09-15 12:06:23.278 32250-32250/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.test.finalapp, PID: 32250
java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class android.view.View]
at com.firebase.ui.a.d.b(Unknown Source)
at android.support.v7.widget.em.c(Unknown Source)
at android.support.v7.widget.fe.a(Unknown Source)
at android.support.v7.widget.fe.c(Unknown Source)
at android.support.v7.widget.dl.a(Unknown Source)
at android.support.v7.widget.LinearLayoutManager.a(Unknown Source)
at android.support.v7.widget.LinearLayoutManager.a(Unknown Source)
at android.support.v7.widget.LinearLayoutManager.c(Unknown Source)
at android.support.v7.widget.RecyclerView.J(Unknown Source)
at android.support.v7.widget.RecyclerView.k(Unknown Source)
at android.support.v7.widget.RecyclerView.t(Unknown Source)
at android.support.v7.widget.RecyclerView.c(Unknown Source)
at android.support.v7.widget.eg.run(Unknown Source)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:603)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:152)
at android.app.ActivityThread.main(ActivityThread.java:5507)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.NoSuchMethodException: <init> [class android.view.View]
at java.lang.Class.getConstructor(Class.java:528)
at java.lang.Class.getConstructor(Class.java:492)
at com.firebase.ui.a.d.b(Unknown Source) 
at android.support.v7.widget.em.c(Unknown Source) 
at android.support.v7.widget.fe.a(Unknown Source) 
at android.support.v7.widget.fe.c(Unknown Source) 
at android.support.v7.widget.dl.a(Unknown Source) 
at android.support.v7.widget.LinearLayoutManager.a(Unknown Source) 
at android.support.v7.widget.LinearLayoutManager.a(Unknown Source) 
at android.support.v7.widget.LinearLayoutManager.c(Unknown Source) 
at android.support.v7.widget.RecyclerView.J(Unknown Source) 
at android.support.v7.widget.RecyclerView.k(Unknown Source) 
at android.support.v7.widget.RecyclerView.t(Unknown Source) 
at android.support.v7.widget.RecyclerView.c(Unknown Source) 
at android.support.v7.widget.eg.run(Unknown Source) 
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858) 
at android.view.Choreographer.doCallbacks(Choreographer.java:670) 
at android.view.Choreographer.doFrame(Choreographer.java:603) 
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844) 
at android.os.Handler.handleCallback(Handler.java:739) 
at android.os.Handler.dispatchMessage(Handler.java:95) 
at android.os.Looper.loop(Looper.java:152) 
at android.app.ActivityThread.main(ActivityThread.java:5507) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
CoOpStatusHolder is my FirebaseUI RecyclerView Viewholder. I made the Viewholder an inner class. I made it public static and it's in proguard-rules.pro file, so I'm still not sure what the issue is...
public static class CoOpStatusHolder extends RecyclerView.ViewHolder {
View mView;
public CoOpStatusHolder(View itemView) {
super(itemView);
mView = itemView;
}
public void setName(String name) {
TextView nameOfParentToChoose = (TextView) mView.findViewById(R.id.
textView_of_parent_name_in_co_op_status);
nameOfParentToChoose.setText(name);
}
public void setFacebookImage(String facebookID) {
ProfilePictureView parentFacebookPhoto = (ProfilePictureView) mView.findViewById(R.id.
imageview_of_parent_in_co_op_status);
parentFacebookPhoto.setProfileId(facebookID);
}
public void setHours(Float numofHours) {
TextView numOfHoursForParent = (TextView) mView.findViewById(R.id.
textView_num_of_hours_in_co_op_other_parent_status);
numOfHoursForParent.setText(Float.toString(numofHours));
}
}

Unable to start activity ComponentInfo{com.viralandroid.test/com.paypal.android.sdk.payments.PaymentActivity}:

How could I solve the problem below? I searched a lot but I didn't figure out.
I am using a fragment instead of an activity to call PaymentActivity.
Thanks in advance.
There is a piece of code below.
public void executarPagtoPayPal()
{
SearchResultsAdapter searchResultsAdapter = new SearchResultsAdapter(getActivity(), new ArrayList<Produto>());
PayPalPayment coisasAComprar = searchResultsAdapter.prepararCarrinhoFinal();
Intent i = new Intent(getActivity(), PaymentActivity.class);
i.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, payPalConfiguration);
i.putExtra(PaymentActivity.EXTRA_PAYMENT, coisasAComprar);
startActivityForResult(i,CODIGO_PAGTO);
}
06-01 13:26:31.841 12770-12770/com.viralandroid.test E/Parcel: Class not found when unmarshalling:
java.lang.ClassNotFoundException: Invalid name:
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:309)
at android.os.Parcel.readParcelableCreator(Parcel.java:2281)
at android.os.Parcel.readParcelable(Parcel.java:2245)
at com.paypal.android.sdk.payments.PayPalPayment.(Unknown Source)
at com.paypal.android.sdk.payments.PayPalPayment.(Unknown Source)
at com.paypal.android.sdk.payments.br.createFromParcel(Unknown Source)
at android.os.Parcel.readParcelable(Parcel.java:2252)
at android.os.Parcel.readValue(Parcel.java:2152)
at android.os.Parcel.readArrayMapInternal(Parcel.java:2485)
at android.os.BaseBundle.unparcel(BaseBundle.java:221)
at android.os.BaseBundle.containsKey(BaseBundle.java:269)
at android.content.Intent.hasExtra(Intent.java:5055)
at com.paypal.android.sdk.payments.d.b(Unknown Source)
at com.paypal.android.sdk.payments.PaymentActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:6178)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2648)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2769)
at android.app.ActivityThread.access$900(ActivityThread.java:177)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1430)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5910)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)
06-01 13:26:31.841 12770-12770/com.viralandroid.test D/AndroidRuntime: Shutting down VM
06-01 13:26:31.841 12770-12770/com.viralandroid.test E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.viralandroid.test, PID: 12770
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.viralandroid.test/com.paypal.android.sdk.payments.PaymentActivity}: android.os.BadParcelableException: ClassNotFoundException when unmarshalling:
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2695)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2769)
at android.app.ActivityThread.access$900(ActivityThread.java:177)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1430)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5910)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)
Caused by: android.os.BadParcelableException: ClassNotFoundException when unmarshalling:
at android.os.Parcel.readParcelableCreator(Parcel.java:2295)
at android.os.Parcel.readParcelable(Parcel.java:2245)
at com.paypal.android.sdk.payments.PayPalPayment.(Unknown Source)
at com.paypal.android.sdk.payments.PayPalPayment.(Unknown Source)
at com.paypal.android.sdk.payments.br.createFromParcel(Unknown Source)
at android.os.Parcel.readParcelable(Parcel.java:2252)
at android.os.Parcel.readValue(Parcel.java:2152)
at android.os.Parcel.readArrayMapInternal(Parcel.java:2485)
at android.os.BaseBundle.unparcel(BaseBundle.java:221)
at android.os.BaseBundle.containsKey(BaseBundle.java:269)
at android.content.Intent.hasExtra(Intent.java:5055)
at com.paypal.android.sdk.payments.d.b(Unknown Source)
at com.paypal.android.sdk.payments.PaymentActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:6178)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2648)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2769) 
at android.app.ActivityThread.access$900(ActivityThread.java:177) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1430) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5910) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200) 
It looks like the contents of the PayPalPayment that you are putting in the Intent are not correct. Please validate that this object has all the correct data.

Categories

Resources