Transfere from thunkable app force close

I transfered my project from thunkable.Removed Cloudinary and tryed build apk.When ı open app and click screen its force close

here logs
[22:07, 3.10.2017] +90 538 984 08 05: ava.lang.ClassCastException: android.graphics.drawable.BitmapDrawable cannot be cast to android.graphics.drawable.RippleDrawable
at com.google.appinventor.components.runtime.ButtonBase.onTouch(ButtonBase.java:195)
at android.view.View.dispatchTouchEvent(View.java:10024)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at com.google.appinventor.components.runtime.ScaledFrameLayout.dispatchTouchEvent(ScaledFrameLayout.java:84)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:413)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1808)
at android.app.Activity.dispatchTouchEvent(Activity.java:3125)
at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:375)
at android.view.View.dispatchPointerEvent(View.java:10248)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4511)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4379)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3921)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3974)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3940)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4067)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3948)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4124)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3921)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3974)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3940)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3948)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3921)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6326)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6300)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6261)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6429)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:187)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:323)
at android.os.Looper.loop(Looper.java:139)
at android.app.ActivityThread.main(ActivityThread.java:6252)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:895)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:785)

Here companion app

Another error

Runtime Error
Error from Companion: Attempt to invoke virtual method ‘boolean java.lang.String.equals(java.lang.Object)’ on a null object reference

Did you use a image on the button?

Yes, I use to many buttons with image

I think i must do some changes in the code that it works again.
Sorry for the trouble.

There was a problem in the code with buttons that uses images.
I have changed now something in the code and it works for me now.

It should be for all available in the next update.
I can now do nothing, we have to wait for the qr code close screen fix from @vishwasadiga and then @Diego can make the update.

1 Like

New update come.But my problems not fixed.Cant close QR code screen (Using latest Firefox).Companion page not updated.Its say companion version is 2.0 not 2.1.1.When testing my app its ask me update companion.When i select ok its get server error.

Read this here:

What happens now?
Your buttons with images on it should work.

Thanks for fix it mika

But there is other problems ı need to work.Button images are not loaded correct.Some button desings wrong.

APK file you can try it
https://1fichier.com/?w8zv2e4y2d

Screen1

Original UI
https://lh3.googleusercontent.com/nyVF7_S2WyNT1L8HK2yf9959QgRjS8upPHsBJ9VJFxaJ4_PxrAgUi2CybFenLN2sy5uQ=h900
https://lh3.googleusercontent.com/EWzk_OYEQjPhB56bo7pz74Msiu72l1CudvDMtAxqk5bhFE2nnn1LO8x_i1QUBmQan7AZ=h900

And here makeroid output

when ı testing my app functions its force close here another error log

java.lang.ClassCastException: android.graphics.drawable.TransitionDrawable cannot be cast to android.graphics.drawable.RippleDrawable
at com.google.appinventor.components.runtime.ButtonBase.onTouch(ButtonBase.java:195)
at android.view.View.dispatchTouchEvent(View.java:10024)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at com.google.appinventor.components.runtime.ScaledFrameLayout.dispatchTouchEvent(ScaledFrameLayout.java:84)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2634)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2264)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:413)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1808)
at android.app.Activity.dispatchTouchEvent(Activity.java:3125)
at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:375)
at android.view.View.dispatchPointerEvent(View.java:10248)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4511)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4379)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3921)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3974)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3940)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4067)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3948)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4124)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3921)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3974)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3940)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3948)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3921)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6326)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6300)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6261)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6429)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:187)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:323)
at android.os.Looper.loop(Looper.java:139)
at android.app.ActivityThread.main(ActivityThread.java:6252)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:895)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:785)

Can you upload the apk anywhere else?
Like here or on google play?

File is to big to upload here.

And on google drive? :smile:

https://drive.google.com/file/d/0B9pRQ9CP2D_IU2cyNl94UERTa00/view?usp=sharing

1 Like

@Ali_Aydin try to set the button height for the 3 bottom buttons to automatic.
It seems you use a pixel height which is not enough.

Click 60SN button its color is green(best for test) and select one category on screen1 and start playing game.Just click a b c d and when 5.question come try click one of the answers Its force close.If you click 2x time same button its force close.On the first click button height changed and 2. click makes a bug

For bottom buttons
There is two layout item.Heights is 7 ,6 percent.And for buttons heights it already setted automatic.I will redesing them its not problem.I can do it later.I need fix force close erros

Edıt:

I m testing my app now with makeroid app.Its give me this error

I user pavi free IAP extension ı think if ı switch to makeroid default billing component its fix this problem

Runtime Error
Attempt to invoke interface method ‘int com.android.vending.billing.IInAppBillingService.isBillingSupportedExtraParams(int, java.lang.String, java.lang.String, android.os.Bundle)’ on a null object reference
Note: You will not see another error reported for 5 seconds.

Yes try to use the default billing component.
And set the layout height in which the bottom buttons are too to automatic.

I will try.I found why some images are white.I use none for background color for buttons.And ıts makes white color.Is it possible add transparent option to color picker? Its fixes my white buttons or ı need set background color to transparent or another color on screenintialize event.

When i sets layouts to automatic its fix problem

I m currenlty trying fix problem another error log

I think its happen when switched screen

java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:851)
at java.util.HashMap$KeyIterator.next(HashMap.java:885)
at com.google.appinventor.components.runtime.EventDispatcher.delegateDispatchEvent(EventDispatcher.java:219)
at com.google.appinventor.components.runtime.EventDispatcher.dispatchEvent(EventDispatcher.java:198)
at com.google.appinventor.components.runtime.Button.Click(Button.java:51)
at com.google.appinventor.components.runtime.Button.click(Button.java:43)
at com.google.appinventor.components.runtime.ButtonBase.onClick(ButtonBase.java:785)
at android.view.View.performClick(View.java:5639)
at android.view.View$PerformClick.run(View.java:22446)
at android.os.Handler.handleCallback(Handler.java:754)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:160)
at android.app.ActivityThread.main(ActivityThread.java:6252)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:895)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:785)

Why ı cant fill background like second image?

First image makeroid output.When ı click it its restored that ı wanted(I use animationextension for animations maybe its change it to app inventor style).If i click it again its force close

I cant fill layout backgrounds you can see green and red bars.I dont want empty spaces.And for other buttons like 3 bottom buttons ı dont want space.

Button shape operation broke button widht height.I use rounded on my screen1 bottom buttons.I need disable them for fix widhts.Again unable fill spaces.

I found metarial icons option.Its good idea use it on my app but when i use it its too small.When i want make its bigger some of area of the icon invisible.

There is litle problems on ui desing

The space (margin) between buttons is default for android.
The only thing we can do is add a designer option to enable or disable it.