a914-gowtham / android-video-trimmer

Helps to trim local videos with compress option on Android applications using Exoplayer 2 and FFmpeg.
Other
372 stars 117 forks source link

in debug mode your library working awesome #36

Closed sasikumarramans closed 3 years ago

sasikumarramans commented 3 years ago

Below error am facing after enabling proguard

java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to android.widget.CompoundButton$SavedState proguard issue

Please give me the suggestion to this

a914-gowtham commented 3 years ago

Can you share the full error log and Have you added proguard rules?

-dontwarn com.gowtham.library -keep class com.gowtham.library { *; } -keep interface com.gowtham.library* { ; }

sasikumarramans commented 3 years ago

Yes I have added proguard rules and also i added full error logs below, Please give the suggestion

java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to android.widget.CompoundButton$SavedState at android.widget.CompoundButton.onRestoreInstanceState(CompoundButton.java:661) at android.view.View.dispatchRestoreInstanceState(View.java:21574) at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4699) at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4699) at android.view.View.restoreHierarchyState(View.java:21552) at androidx.fragment.app.Fragment.restoreViewState(:573) at androidx.fragment.app.FragmentStateManager.restoreViewState(:356) at androidx.fragment.app.FragmentManager.moveToState(:1189) at androidx.fragment.app.FragmentManager.moveToState(:1356) at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(:1434) at androidx.fragment.app.FragmentManager.moveToState(:1497) at androidx.fragment.app.FragmentManager.dispatchStateChange(:2625) at androidx.fragment.app.FragmentManager.dispatchActivityCreated(:2577) at androidx.fragment.app.FragmentController.dispatchActivityCreated(:247) at androidx.fragment.app.FragmentActivity.onStart(:541) at androidx.appcompat.app.AppCompatActivity.onStart(:210) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1433) at android.app.Activity.performStart(Activity.java:7986) at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3677) 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:2267) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:237) at android.app.ActivityThread.main(ActivityThread.java:8167) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)

a914-gowtham commented 3 years ago

This error happens if we have used the same id for multiple views. share the reproducing steps so that I can try to find out the issue

sasikumarramans commented 3 years ago
  1. Just enable the proguard and add your proguard rules
  2. then select one video and do some trim
  3. then finally click the save button on top then you will get this issue
a914-gowtham commented 3 years ago

Thanks, I will try to reproduce the issue here.

a914-gowtham commented 3 years ago

Duplicate of #35 this issue's updates will be updated there