Error: incompatible types: int cannot be converted to String

453 views
Skip to first unread message

Pal Csanyi

unread,
Jul 17, 2017, 4:44:09 PM7/17/17
to App Inventor Java Bridge
Hello,

I am developing on MIT App Inventor 2 a project.
I can import it to App Inventor Java Bridge by editing it's two files.
I can import it in Android Studio. But when I try to build it, I get an error: Error:(175, 44) error: incompatible types: int cannot be converted to String
I think that that this could be a bug in App Inventor Java Bridge, because I can run this application by using 'MIT App Inventor 2' and 'MIT App Inventor 2 Companion' on my smartphone.
I attach here the .iai archive from App Inventor Java Bridge, and the Screen1.java file too.
I think that that during java generation App Inventor Java Bridge should be convert in this situation an Integer to String, no?

Best, from Pali

Screen1.java
TechnicalLessonPlans.aia

Thomas Oropeza

unread,
Feb 1, 2018, 3:08:58 PM2/1/18
to App Inventor Java Bridge
Hi Pal,

Thanks for your post! And sorry it took so long to get back to you.

I will be working to get this project towards completion and if you are still interested in being part of the Beta community we would love to have your input on Java Bridge and how it could be improved!

I added this to a list of issues and will get back to you once it is resolved.

Thanks,
Thomas Oropeza

Thomas Oropeza

unread,
Apr 10, 2018, 4:33:12 PM4/10/18
to App Inventor Java Bridge
Hey Pal,

You'll be happy to know that this issue is now fixed!

Your app should be generating properly now.

I would suggest regenerating your app on appinventortojava.com and reimporting it into Android Studio.

Thanks and let me know if you run into any more issues,
Thomas

On Monday, July 17, 2017 at 1:44:09 PM UTC-7, Pal Csanyi wrote:
Reply all
Reply to author
Forward
0 new messages