ScanView error. Runtime Error Failed resolution of: Lcom/google/zxing/BarcodeFormat

Do you understand English? I wrote that my apps HAVE TO BE DESIGNED TO BE BUILT BY AI2 AND AI2OFFLINE. So, if a problem arises building or debugging on AI2 this is the right place. Instead of this type of racism, I think may be interesting to everyone learn how to build apps compatible with both. Start to imagine what means to do not be able to update an app because AI2 update, you are not able to come back to the last AI2 release able to build your app but you may have a chance using AI2Offline. So, as always, my company policy is to use online development tools taking care safety, security and maintenance. AI2 can be used because AI2Offline exists.

I read what you said and I understand it. But, as I said, if you are having issues with your AI2Offline app, join their forum. This forum's sole purpose is for AI2 Online (aka MIT App Inventor).

MIT App Inventor is AI2 Online. AI2Offline is created by a developer who does not work with the MIT.

I had the problem using AI2, then because I already used that extension since 2020 I tryed to rebuild a couple of apps and they did not have the problem. So I tryed to build the app using AI2Offline and I had the same problem. So I start to search info about the scanview extension and I found in the kodular forum that many others had the same problem and they solved it putting a BarcodeScanner instance in screen1. I do not understand what problem I have because until yesterday morning everything worked well but this trick solves my problem.

Please contact the author of this extension directly, with PM or in the thread where the extension is released.

Well, updates that AI2 makes (has to make) are, on the one hand, those

  • which add new/enhanced functions or those,
  • which are enforced by Google in August of each year.

If you offer "professional" apps, you will usually do so via the Play Store in particular. However, apps that do not meet the requirements of the respective targetSdk are no longer permitted there.

In this respect, your statement could only be true if your apps are not offered via the Play Store (which I would understand, but which doesn't look very professional).


I've also been working with AI2 offline versions (AI2U and later AI2Offline) for about ten years because it's faster, the AIA and APK size restrictions aren't there, internet independence (when traveling, on vacation) etc. But even though AI2Offline is completely based on AI2 based online, there are some (small) differences that unfortunately make compatibility difficult.

And as we have already seen from your other contributions, such problems ultimately turned out to be caused by AI2Offline.

1 Like

To remind you of another AI2Offline problem (Firebase related):

The above project isn't even working here a MIT

Check ScanView version on that app

Differences in versions

2.1 has Zxing Library (Isn't working with companion)
2.2 does not have Zxing Library hence you must have BarcodeScanner component

No, actually I have some apps done last year working also using companion and now with the solution found in Kodular also this app and my example work on AI2 with companion.

Yes, right this is one of the reasons it is not viable to use those components also using AI2 for professional solutions and use extensions.

Depends, how to distribute the apps is a decision of my customer, many do not like to distribute trough the play store and use their servers. As AIoTech we have a google play store account. But these type of apps haven't a low price, they are sold one time to the customer and he eventually has to decide how distribute the app.

If you're building professional apps, and want to make sure you don't have any problems updating in the future, you should use Android Studio. There you have better control over the interface, the code and you are not dependent on other programmers. In addition, you can do everything there for free, even what here requires paid extensions.

Your example above doesn't work at MIT at all

There are many viable alternatives to Android Studio, we used Xamarin in the past then a college of performing arts asked us to organze an undergraduated course to applicate informatics to creative work using smartphones and we propose AI2 + AI2Offline. AI2Offline makes possible organizing exams preventing internet access to find already existing solutions, you have just to cut the internet to that group of PCs. Then, trying and studyng a little bit more we realized some apps to support our internal testing needs for embedded devices and boards and then for simple user friendly IoT applications. The development speed is higher compared with more traditional development tools and also software engineering is possible. Extensions permits also to realize apps looking good and performance are also good so with some little limitations is possible to develop professional apps using AI2 compatibility with AI2Offline give us a sense of more security about service continuity, backup and so on. And last but not least curve learning is shorter. I would wish that MIT gaves an AI2 package that may be installed in a server or standalone in a PC so that it is a real copy of AI2 but actually seems it does not exist so AI2Offline actually is the "solution". We found also extension or tools based on AI2 to simplify AR and VR app development, we are testing them, basically it is AI2 supercharged with components for AR, VR and devices normally used in these applications.

You can use original AI2 locally.

AI2Offline is just an exe wrapper of artifacts build using AppInventor source with some modifications. You can also do it, without changing anything in original code to make it compatible.
Clone AI2 sources on your pc, download necessary tools like GCloud SDK, Java , Ant etc. and compile it. Now the part comes which is assembling of these artifacts in an executable file. Then you can distribute the exe file.

Yes, but then unfortunately the feature of a separate package name is still missing.

My current favorite is therefore Niotron (or Appzard) – both with at least as many functions/features as Kodular – but much closer to AI2 and (except for the missing components fully compatible with AI2).

I have the solution as you know but it is just that I'm not willing to open source it. I worked hard upon this so I feel that I should get atleast something in return.
On the other hand keeping is closed is not giving me anything as well. So it might be possible that someday I end up opening a PR. :joy:

1 Like

Just opening a PR won't do much. There are many open PRs with various good features that have not been added and I don't think they will ever be added. But it's possible that a lot of new features will come after the merge with Kodular.

Fact.
Yes it won't be added in AI2 but then someone can merge it in their cloned/forked version.

Hmm, how then should Kodular projects be able to be imported into AI2 and updated later (for the Play Store)?

I'm talking about the collaboration with Kodular and after both platforms have merged, then AI2 must also make the packageName editable.