I can't pub get my flutter project with no reason - flutter-dependencies

I am learning flutter, and improving myself by doing different projects. But now, I've got one problem for hours. Why I can not pub get my pubspec.yaml file? I have Internet connection.But I can't get any package and can not pub get it.
I tried it in other projects without installing any package, but it was a fail too. How can I fix this problem? May be I have another serious mistakes. Please give me your advises and thank you in advance.

Related

reSolve and React Native integration

Is there any working example available involving reSolve in React Native?
Suggestions of comparable solutions (running without any back-end connectivity in place) either in React Native or Flutter are also most appreciated.
GitHub contains an example in the reimagined/react-native-example repository but unfortunately it isn't working. It seems the current version is pretty outdated.
Referring to that repository, the command yarn create resolve-app -e shopping-list-advanced shopping-list-advanced results in the following error message.
Error: No such example, shopping-list-advanced. The following examples are available
So you are unable to download the sample code since it does not appear to exist.
So I tried downloading and inflating the ZIP manually. Afterwards I ran yarn install (which takes a while and reports quite a lot of warnings). Next, I used the command yarn start:native. This doesn't work either and results in the following error message.
ERROR: Node.js version 16.13.2 is no longer supported.expo-cli supports following Node.js versions: >=10.13.0 <11.0.0 (Active LTS) >=12.0.0 <13.0.0 (Active LTS) >=13.0.0 <14.0.0 (Current Release)
In an attempt to solve the problem, I updated the expo-cli version in the native\package.json file to 5.0.3. Running yarn install and yarn start:native again results in a new error message being thrown error.
Invalid regular expression:
/(ui[\]node_modules[\]react-native[\].|ui[\]node_modules[\]expo[\].|node_modules[\]react[\]dist[\].|website\node_modules\.|heapCapture\bundle.js|.\tests\.)$/:
Range out of order in character class.
This doesn't seem to go anywhere... In other words, I am a bit stuck here since I don't know what this message actually means.
Thank you for your feedback.
The team decided to extract the React Native example to a separate repository and postpone its maintenance to keep focused on more important tasks like polishing the server-side.
As you mentioned, the example is outdated, there are many changes in the client configuration since then. In the future, we may work on some guide on how to use reSolve in React Native and other frameworks.
In the meantime, you can try to add reSolve in your ReactNative app using our docs.
We provide several client libraries that can be helpful:
https://reimagined.github.io/resolve/docs/api/client/resolve-client/
https://reimagined.github.io/resolve/docs/api/client/resolve-react-hooks/
https://reimagined.github.io/resolve/docs/api/client/resolve-redux/
Feel free to contact us through Github in case of any difficulties, we'll be glad to help you.

How to troubleshoot React Native build error?

Below you can see the output I get when I try to run npx react-native run-android. It suggests some options to try in order to further pinpoint the problem, however they don't work with the aforementioned command so I assume that they are related to a gradle (just an educated guess).
I know ZERO about gradle; I have just seen the name here and there and in the output shown below. So please keep that in mind when you answer. If I need to learn how to run some gradle command(s) directly, please be as verbose as possible in your answer.
The project was working fine just a bit ago, but I wanted the ability to force portrait mode for certain screens but without configuring my entire app to always have to stick to portrait mode. So I found what looked to be a solution in the react-native-orientation-locker module. I installed it with yarn and then proceeded to update files as directed: https://www.npmjs.com/package/react-native-orientation-locker.
After updating the appropriate files, I got an error that suggested axios was the problem. I uninstalled and reinstalled axios. After that didn't work, I proceeded to undo all the file changes I had just made. Then I uninstalled the react-native-orientation-locker module.
To my knowledge, I have undone everything I did between the time the project worked and stopped working.
Sadly, I had not put this into source control yet (a mistake I won't make again), so I can't revert.
Where to go from here?
Problems like this are hard to pin point. What you can do is open the android project in android studio and see the logs as the project is being assembled. I assume you do not have much knowledge about android either so you might need some senior resource to help you.
What I usually do in this case is open android studio and if I am lucky enough, it tells me which file has an issue and I go to the file and do what android studio suggests me. Some times it fixes the problem and sometimes it doesn't.
Another thing I would like to mention is that the documentation of the package you are using is important to follow. I assume you did that already but I would suggest to review it narrowly and closely.
Another guess I can tell you is try to go to your-project/android/build.gradle and over there, you'll see something like this in the start. The package you are using mentions something about target SDK 27. I think you should check that out too. May be it helps
Lastly I would say always use source control while working with react native. It can easily blow up at any time so you should always have a safety net to fallback to :)

serverless issue on running deploy for AppSync: Error: No valid exports main found for 'node_modules/extract-files'

I'm unfamiliar with npm, only used it for basic serverless. Sorry if I'm being noobish.
I'm trying to get a basic serverless-appsync-plugin project up and running, but it turns up the issue in the title. My guess is the plugin cannot be detected, imported, or something along those lines, because when I comment out the plugin line in serverless.yml, serverless runs as expected, albeit still not doing what I need it to do.
This is after running npm install serverless AND npm install serverless-appsync-plugin.
Let me know if there's anything else I can add.
Any help would be greatly appreciated. Thanks!
My brew/node/npm stack was out of date, causing some modules to fail to load. Gonna mark as resolved.

Build ti.barcode failed

This is my first time to build Titanium module. What I am building is the ti.barcode for Android. I grasp the source code from Github and import to Titanium studio. Some build path error is easily corrected by opening build path and just close. There is no error shown on the project.
But when I tried to package it, I always get error message:
Launching build and packaging failed
Build failed. Unable to locate generated zip file at /Users/ymlan/Code/ti.barcode-android-2.3.5/dist/ti.barcode-android-2.3.5.zip
I use JDK 1.8 , SDK 5.2.2GA , it seems to be some configuration error, but I can not figure it out after hours of googling. Since I request your keens help here.
Thanks in advance for your help.
Cliff
Maybe it's related to https://jira.appcelerator.org/browse/AC-3806.
It gives me the same error with a new module too.
I had a similar issue. After two days of hell, I have found the cause of my problem! In my workspace root there was an old tiapp.xml (I do not know how it got there...). After removing it, I managed to make the build of the modules, both from Appcelerator Studio that from the CLI.
Try to see if you also have a tiapp.xml or timodule.xml file in the root of the workspace.
Maybe this one might help you
https://github.com/acktie/Acktie-Mobile-Android-Barcode
Or is it definitely required to use Ti.barcode ?

How to run the jgraph example?

I recently have to use Jgraph to build a topu of our IoT net, however, I have no idea of how to run the Jgraph example.Any one can help me? The link of Jgraph in github is here:https://github.com/jgraph/jgraphx.Thank you very much.
A bit late but if you're still interested... once you have added the project in your ide, make sure the src and examples packages are both marked as source folders and run the GraphEditor class in (jgraphx/examples/com/mxgraph/examples/swing/GraphEditor.java)