ShahabGT / InstagramPicker

a simple image picker android library that looks like Instagram
42 stars 11 forks source link

Crash when library's called #12

Open fdegarne opened 3 years ago

fdegarne commented 3 years ago

Hi, when I try to show ImagePicker, the app crash with this error. java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference at ir.shahabazimi.instagrampicker.gallery.GalleryFragment.onCreateView(GalleryFragment.java:82) at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2699) at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:320) at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1199) at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1368) at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1446) at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1509) at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:447) at androidx.fragment.app.FragmentManager.executeOps(FragmentManager.java:2181) at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2004) at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1959) at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1861) at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2641) at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:2589) at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:247) at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:541) at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:210) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1435) at android.app.Activity.performStart(Activity.java:8222) at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3818) at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221) at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:246) at android.app.ActivityThread.main(ActivityThread.java:8512) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

When i open your GalleryFragment file, it looks like ir.shahabazimi.instagrampicker.R and com.yalantis cannot be resolved.

I noticed that com.yalantis.ucrop.UCropActivity cannot be resolved in my Manifest too.

My gradle files are ok according to your documentation. Let me know if you need more information to correct this. Regards. Fabien

jonathansds commented 2 years ago

Any update on this. Same issue for me.

ShahabGT commented 2 years ago

unfortunately i want be able to update the library sooner, a new update is on the way