Hi Koders,
I have a problem regarding coding. As much I can see my code is fine but after the screen 1 loading is over, The app stops when I am testing it as an apk.
Apk:ElectroTranslate.apk - Google Drive
Aia:ElectroTranslate.aia - Google Drive
Can you show the next screen blocks so we can understand what’s the issue is also are you using any extension?
From logcat
channel 'd1779f0 com.electromobileintell.electrotranslate/io.kodular.electromobileintell.ElectroTranslate.Screen1 (server)' ~ Channel is unrecoverably broken and will be disposed!
Unfortunately I can not import aia in creator, getting server error, but try setting clock2 time interval to 2500 instead of 1500 and also change blocks from
to
and see if it works
Sorry to say that it didn’t worked, but it seemed that the next screen had opened but just after a second the app again stopped
Try setting both clocks TimerAlways fire to false in Screen2
I am using the following extensions :
Which of them is unsupported?
None, all the extensions in this AIA are already compatible with Kodular (tested with recast)
I have set that, but nothing fruitful…
Yes, I also know that
Actually, I am not so pro in android programming, will you please simply tell which extension is creating this problem?
Looks like I made a mistake here, it’s not the extension’s fault
This issue seems to be stemming from the side menu layout component you’re using in your project.
cc (full exception below) // @Kodular
08-25 05:04:09.783 16058 16058 E AndroidRuntime: java.lang.IllegalStateException: Child drawer has absolute gravity LEFT but this DrawerLayout already has a drawer view along that edge
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at androidx.drawerlayout.widget.DrawerLayout.onMeasure(DrawerLayout.java:1134)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.View.measure(View.java:25671)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.ViewGroup.measureChild(ViewGroup.java:6958)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at com.google.appinventor.components.runtime.ScaledFrameLayout.onMeasure(SourceFile:129)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.View.measure(View.java:25671)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6987)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at androidx.appcompat.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:143)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.View.measure(View.java:25671)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6987)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1552)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.widget.LinearLayout.measureVertical(LinearLayout.java:842)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.widget.LinearLayout.onMeasure(LinearLayout.java:721)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.View.measure(View.java:25671)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6987)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.View.measure(View.java:25671)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6987)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1552)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.widget.LinearLayout.measureVertical(LinearLayout.java:842)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.widget.LinearLayout.onMeasure(LinearLayout.java:721)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.View.measure(View.java:25671)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6987)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at com.android.internal.policy.DecorView.onMeasure(DecorView.java:753)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.View.measure(View.java:25671)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:3675)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:2466)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2741)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2152)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8675)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1348)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:1145)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:1045)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.view.Choreographer$FrameHandler.handleMessage(Choreographer.java:1271)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.os.Looper.loop(Looper.java:233)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7959)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
08-25 05:04:09.783 16058 16058 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
Profoundly,
– Nathan
As I told I am not so pro in android programming, kindly simply tell me what to change in the blocks…
Ok, then what’s the fault? Please check it
Please tell what to do in the blocks
Remove a side menu layout component from your second screen, your application is crashing because Kodular is trying to create two drawer layouts and not one.
Additionally, please edit your first reply instead of replying three separate times.
Profoundly,
– Nathan
Very much thanks, this was the issue it seems, thankssss…
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.