2017년 1월 4일 수요일

Value Failed to Convert to JSON - possible AppInventor2 bug?


"When you are developing apps using the AI Companion, all the apps using that Companion will share the same TinyDB. That sharing will disappear once the apps are packaged and installed on the phone."

I've been working on a golf handicap calculator app, which saves scores to a TinyDB.  For a while all went well, and I created partial projects to work out some of the details before integrating them into the app.  Recently I've been getting the Value Failed to Convert to JSON message, but only on the AIA version.  When the identical project is built as an APK file and sent to my phone to build a standalone app, there are no data issues.  I saw that others have had similar JSON problems in the past but without resolution.  Since the main difference is that the APK file creates a dedicated tinyDB component, while the AIA file shares the tinyDB with other projects, could the problem be a bug in AppInventor2 that fails to isolate the data in each app sharing the tinyDB?

--
It sounds like you are on the right track in diagnosing your problem.

I've attached a DumpTinyDB sample procedure you can copy in thru the Backpack to see what's lurking in your TinyDB.

 blocks.png

댓글 없음:

댓글 쓰기