Can somebody help me debug my app?

So I was creating a translator app and I installed this translator app on my emulator in Android Studio, the same emulator used in this guide.

When I opened my app on the emulator, it showed an error.

I simply dismissed the error by clicking the background, and everything seems to be fine when suddenly the app closes automatically.

Here is my app AIA file. I’m uploading the AIA because there are 245 blocks.

UPDATED:
Translate.aia (74.5 KB)

This same error appears every time I select something in the From_Spinner.

Can somebody help me debug?

1 Like


SeSee the error, clearly it says…

Do not use false in the place of icon instead you can use empty text box

Try this , is it working or not…I may be wrong

2 Likes

I tried this before, it worked. The problem is not with the ‘false’ block.

Two spinner making problem… if you add only one spinner in screen initial i feel no problem

OK let me try…

I still get the same error…

java.lang.String java.lang.Throwable.toString()

Always this error.

Yeap found it, It is due to your OCR component. and make sure it is update one…
If you delete it, app doesnot show any java error

Basically I believe the problem is here Selection from Spinner can take Values Auto, English, French … but global id values are numbers 10,12,13…

1 Like

Yeah, me too.

Yes, after I deleted it, no errors.

No need to delete OCR. Try replacing block with this and see if it works, block is draggable

1 Like

image
Instead of OCR i tried with a label, but i am getting…

Is it working for you ?
Actually we need to give text only but why it dosesnot accepts the direct selection? I dont know this…

Yes you are right, changed my blocks to choose correcty. Actually this problem can be solved, the error caused by ocr doesn’t occur in apk
Translate_1.aia (75.1 KB)

The main problem is that Google Translate Extension causes app to close immediately

Logcat

`09-19 11:44:41.858 1898 5885 E ActivityTrigger: activityStartTrigger: not whiteListedio.balloon.translate/io.kodular.dora0paz.Translate.Screen1/1
09-19 11:44:41.859 1898 5885 E ActivityTrigger: activityResumeTrigger: not whiteListedio.balloon.translate/io.kodular.dora0paz.Translate.Screen1/1
09-19 11:44:41.866 1898 7143 E ActivityTrigger: activityResumeTrigger: not whiteListedio.balloon.translate/io.kodular.dora0paz.Translate.Screen1/1
09-19 11:44:41.896 12126 12126 E lloon.translat: Not starting debugger since process cannot load the jdwp agent.
09-19 11:44:43.853 12126 12126 E AndroidRuntime: FATAL EXCEPTION: main
09-19 11:44:43.853 12126 12126 E AndroidRuntime: Process: io.balloon.translate, PID: 12126
09-19 11:44:43.853 12126 12126 E AndroidRuntime: java.lang.ClassCastException: org.json.JSONObject$1 cannot be cast to org.json.JSONArray
09-19 11:44:43.853 12126 12126 E AndroidRuntime: at com.devyb.devybgoogletranslate.TranslateAPI$Async.onPostExecute(Unknown Source:52)
09-19 11:44:43.853 12126 12126 E AndroidRuntime: at com.devyb.devybgoogletranslate.TranslateAPI$Async.onPostExecute(Unknown Source:6)
09-19 11:44:43.853 12126 12126 E AndroidRuntime: at android.os.AsyncTask.finish(AsyncTask.java:695)
09-19 11:44:43.853 12126 12126 E AndroidRuntime: at android.os.AsyncTask.access$600(AsyncTask.java:180)
09-19 11:44:43.853 12126 12126 E AndroidRuntime: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712)
09-19 11:44:43.853 12126 12126 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
09-19 11:44:43.853 12126 12126 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
09-19 11:44:43.853 12126 12126 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6762)
09-19 11:44:43.853 12126 12126 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-19 11:44:43.853 12126 12126 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
09-19 11:44:43.853 12126 12126 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
09-19 11:44:43.912 1898 2076 E InputDispatcher: channel ‘d1237f io.balloon.translate/io.kodular.dora0paz.Translate.Screen1 (server)’ ~ Channel is unrecoverably broken and will be disposed!

`

2 Likes

I’ll try it out later…

So I think it is the problem with DevYBGoogleTranslate. It happens all the time.

1 Like

Allready notified extension developer

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.