Sketchware-Pro / Sketchware-Pro

Sketchware Pro's sources in Java. Now anyone can contribute to Sketchware Pro.
https://sketchware.pro
Other
854 stars 253 forks source link

Sign an Apk file With TestKey bugs #1073

Closed Alotuna closed 2 months ago

Alotuna commented 3 months ago

Describe the bug

When I clicked on sign an apk file with testkey the sketchware was crashes

java.lang.ClassCastException: com.google.android.material.textfield.TextInputEditText cannot be cast to com.besome.sketch.lib.ui.EasyDeleteEditText
    at mod.hilal.saif.activities.tools.Tools.signApkFileDialog(Tools.java:273)
    at mod.hilal.saif.activities.tools.Tools.lambda$setupViews$6(Tools.java:255)
    at mod.hilal.saif.activities.tools.Tools.$r8$lambda$rDxThmcAlcTZd4aSHZmbXq-qTdE(Unknown Source:0)
    at mod.hilal.saif.activities.tools.Tools$$ExternalSyntheticLambda10.onClick(Unknown Source:2)
    at android.view.View.performClick(View.java:6599)
    at android.view.View.performClickInternal(View.java:6576)
    at android.view.View.access$3100(View.java:780)
    at android.view.View$PerformClick.run(View.java:25899)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:193)
    at android.app.ActivityThread.main(ActivityThread.java:6825)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:860)

v6.4.0-SNAPSHOT-5460da8-minApi26

Win-one commented 3 months ago

me too!Maybe it's because“EasyDeleteEditText”is too old!

Alotuna commented 3 months ago

me too!Maybe it's because“EasyDeleteEditText”is too old!

I don't think it's too old, just a bug in the dialog code and I fixed it myself

Win-one commented 3 months ago

change"EasyDeleteEditText"to"TextInputEditTxt"!

Alotuna commented 3 months ago

change"EasyDeleteEditText"to"TextInputEditTxt"!

I know,Just like this

TextInputEditText ed_input = testkey_root.findViewById(R.id.ed_input);

ilyassesalama commented 2 months ago

I couldn't reproduce the mentioned issue. Are you sure you've tried the latest version provided by GitHub actions? if not, please download it from here.

TanTai97o commented 2 months ago

I couldn't reproduce the mentioned issue. Are you sure you've tried the latest version provided by GitHub actions? if not, please download it from here.

Tried the new version but still error

hasrat-ali commented 2 months ago

This issue is already fixed. Try newer build.