My app crash but i dont know why, no method named Column

Is there a specific error message you see when the app crashes?

1 Like

No they aren’t specific message juste this in my phone


I have this if you would like "java.lang.RuntimeException: Unable to start activity ComponentInfo{appinventor.ai_samsvr75.robot/appinventor.ai_samsvr75.robot.Screen1}: java.lang.RuntimeException: invoke: no method named Column' in class appinventor.ai_samsvr75.robot.Screen1 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3304) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3443) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2040) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:224) at android.app.ActivityThread.main(ActivityThread.java:7520) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950) Caused by: java.lang.RuntimeException: invoke: no method named Column’ in class appinventor.ai_samsvr75.robot.Screen1
at gnu.kawa.reflect.Invoke.lookupMethods(Invoke.java:284)
at gnu.kawa.reflect.Invoke.applyN(Invoke.java:185)
at gnu.mapping.ProcedureN.apply3(ProcedureN.java:48)
at com.google.youngandroid.runtime.$PcSetAndCoerceProperty$Ex(runtime6008596493896806739.scm:1282)
at com.google.youngandroid.runtime.setAndCoerceProperty$Ex(runtime6008596493896806739.scm:196)
at appinventor.ai_samsvr75.robot.Screen1.lambda5(Screen1.yail:13)
at appinventor.ai_samsvr75.robot.Screen1$frame.apply0(Screen1.yail:530)
at gnu.expr.ModuleMethod.apply0(ModuleMethod.java:186)
at kawa.lang.Promise.force(Promise.java:27)
at kawa.lang.Promise.force(Promise.java:37)
at kawa.lib.misc.force(misc.scm:98)
at appinventor.ai_samsvr75.robot.Screen1.$define(Screen1.yail:10312)
at com.google.appinventor.components.runtime.Form.onCreateFinish2(Form.java:415)
at com.google.appinventor.components.runtime.Form.onCreateFinish(Form.java:392)
at com.google.appinventor.components.runtime.Form.onCreate(Form.java:324)
at appinventor.ai_samsvr75.robot.Screen1.onCreate(Screen1.yail:10003)
at android.app.Activity.performCreate(Activity.java:7893)
at android.app.Activity.performCreate(Activity.java:7880)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3279)
… 11 more
"

See here

Taifun

Taifun sorry I haven’t understand how you resolve this error and what caused this error

A post was split to a new topic: Bluetooth Issue

this seems to be a bug in App Inventor...
as workaround did you try the solution by @Svetlana_GREGOIRE ?

Taifun

#|
$JSON
{“authURL”:[“ai2.appinventor.mit.edu”],“YaVersion”:“205”,“Source”:“Form”,“Properties”:{"$Name":“Screen1”,"$Type":“Form”,"$Version":“27”,“AppName”:“robot”,“Column”:“1”,“Row”:“1”,“Title”:“Screen1”,“Uuid”:“0”,"$Components":[{"$Name":“Arrangement_tableau1”,"$Type":“TableArrangement”,"$Version":“1”,“Columns”:“6”,“Width”:"-2",“Uuid”:“985901136”,"$Components":[{"$Name":“Etat”,"$Type":“Label”,"$Version":“5”,“Column”:“0”,“Row”:“0”,“Text”:“Etat :”,“Uuid”:"-1387751470"},{"$Name":“co”,"$Type":“Label”,"$Version":“5”,“Column”:“1”,“Row”:“0”,“Uuid”:"-960348748"},{"$Name":“Ebatterie”,"$Type":“Label”,"$Version":“5”,“Column”:“3”,“Row”:“0”,“Text”:“Batterie :”,“Uuid”:"-1228674089"},{"$Name":“Batterie”,"$Type":“Label”,"$Version":“5”,“Column”:“4”,“Row”:“0”,“Uuid”:“977694379”},{"$Name":“deconnection”,"$Type":“Button”,"$Version":“6”,“Column”:“3”,“Row”:“1”,“Text”:“deconnection”,“Uuid”:"-1851912711"},{"$Name":“vmd”,"$Type":“Label”,"$Version":“5”,“Column”:“2”,“Row”:“3”,“Uuid”:"-894039875"},{"$Name":“vmg”,"$Type":“Label”,"$Version":“5”,“Column”:“2”,“Row”:“5”,“Uuid”:"-726635850"},{"$Name":“connection”,"$Type":“ListPicker”,"$Version":“9”,“Column”:“2”,“Row”:“1”,“Text”:“connection”,“Uuid”:"-870570422"},{"$Name":“arret”,"$Type":“Button”,"$Version":“6”,“Column”:“4”,“Width”:"-1030",“Row”:“1”,“Text”:“arret moteur”,“Uuid”:“1000158394”}]},{"$Name":“Arrangement_tableau2”,"$Type":“TableArrangement”,"$Version":“1”,“Columns”:“3”,“Width”:"-2",“Rows”:“6”,“Uuid”:“1291129732”,"$Components":[{"$Name":“Label1”,"$Type":“Label”,"$Version":“5”,“Column”:“0”,“Row”:“0”,“Text”:“Moteurs droit :”,“Uuid”:“634718812”},{"$Name":“Arrangement_tableau3”,"$Type":“TableArrangement”,"$Version":“1”,“Column”:“1”,“Columns”:“4”,“Row”:“0”,“Rows”:“1”,“Uuid”:“635827793”,"$Components":[{"$Name":“sd”,"$Type":“Label”,"$Version":“5”,“Column”:“0”,“Row”:“0”,“Uuid”:"-1229781157"},{"$Name":“cd”,"$Type":“Label”,"$Version":“5”,“Column”:“1”,“Row”:“0”,“Uuid”:“10469080”},{"$Name":“dd”,"$Type":“Label”,"$Version":“5”,“Column”:“2”,“Row”:“0”,“Uuid”:"-291600816"},{"$Name":“ud”,"$Type":“Label”,"$Version":“5”,“Column”:“3”,“Row”:“0”,“Uuid”:"-1326192454"}]},{"$Name":“Label2”,"$Type":“Label”,"$Version":“5”,“Column”:“0”,“Row”:“3”,“Text”:“Moteur gauche : “,“Uuid”:”-832205646”},{"$Name":“Arrangement_tableau4”,"$Type":“TableArrangement”,"$Version":“1”,“Column”:“1”,“Columns”:“4”,“Row”:“3”,“Rows”:“1”,“Uuid”:"-1828745246","$Components":[{"$Name":“sg”,"$Type":“Label”,"$Version":“5”,“Column”:“0”,“Row”:“0”,“Uuid”:"-496760350"},{"$Name":“cg”,"$Type":“Label”,"$Version":“5”,“Column”:“1”,“Row”:“0”,“Uuid”:“1794373761”},{"$Name":“dg”,"$Type":“Label”,"$Version":“5”,“Column”:“2”,“Row”:“0”,“Uuid”:"-1140247932"},{"$Name":“ug”,"$Type":“Label”,"$Version":“5”,“Column”:“3”,“Row”:“0”,“Uuid”:“1846278606”}]},{"$Name":“md”,"$Type":“Slider”,"$Version":“2”,“Column”:“1”,“Width”:"-1070",“MaxValue”:“100”,“MinValue”:“0”,“Row”:“2”,“ThumbPosition”:“0”,“Uuid”:“139885953”},{"$Name":“mg”,"$Type":“Slider”,"$Version":“2”,“Column”:“1”,“Width”:"-1070",“MaxValue”:“100”,“MinValue”:“0”,“Row”:“5”,“ThumbPosition”:“0”,“Uuid”:“889571283”},{"$Name":“Label3”,"$Type":“Label”,"$Version":“5”,“Column”:“0”,“Width”:"-1010",“Row”:“1”,“Text”:“sens “,“Uuid”:”-221616109”},{"$Name":“Label4”,"$Type":“Label”,"$Version":“5”,“Column”:“0”,“Row”:“2”,“Text”:“vitesse”,“Uuid”:"-1568945932"},{"$Name":“Label5”,"$Type":“Label”,"$Version":“5”,“Column”:“0”,“Row”:“4”,“Text”:“sens”,“Uuid”:“1432635369”},{"$Name":“Label6”,"$Type":“Label”,"$Version":“5”,“Column”:“0”,“Row”:“5”,“Text”:“vitesse”,“Uuid”:“1930377131”},{"$Name":“HorizontalArrangement1”,"$Type":“HorizontalArrangement”,"$Version":“3”,“AlignHorizontal”:“3”,“Column”:“1”,“Row”:“1”,“Uuid”:"-1283631342","$Components":[{"$Name":“Switch1”,"$Type":“Switch”,"$Version":“1”,“On”:“True”,“Uuid”:“2079010972”}]},{"$Name":“HorizontalArrangement2”,"$Type":“HorizontalArrangement”,"$Version":“3”,“AlignHorizontal”:“3”,“Column”:“1”,“Row”:“4”,“Uuid”:"-2077624732","$Components":[{"$Name":“Switch2”,"$Type":“Switch”,"$Version":“1”,“Column”:“1”,“On”:“True”,“Row”:“4”,“Uuid”:“1824718593”}]}]},{"$Name":“Client_Bluetooth1”,"$Type":“BluetoothClient”,"$Version":“6”,“Uuid”:“1252279552”}]}}
|#

this is my line in screen1.scm now what doing

Try removing the Column:1,Row:1 in the screen1 stanza

i dont arrive to rename my file in .aia

I don’t understand what you mean? Can you download your aia project to your computer ? can you open this project with an unzip program? Can you edit the .scm file ? Can you save this edited file ? Can you then close your unzip program? can you then rename the aia project in your file manager ?

i dont arrive to doing this

But you do not tell us why? Have you closed the unzip program and any editing program used to edit the file?

i have this error if you woudlike i send my zip and aia

robot2.aia (7.3 KB)

Try this

robot2_revised.aia (8.3 KB)

(you somehow managed to add an extra directory in your aia…)

i have this

is there posibilty compile aia into apk ?

That won’t help you. I was able to open up the revised version of your aia on my system, and it works without error in companion. Have you refreshed your web browser connection to MIT AI2 ? Try also closing the browser and opening up again.

2 posts were split to a new topic: How to create a slider?

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