So I've been trying to use the HERE sdk for flutter, but whenever I add the unzipped file to the plugins folder and add it to the pubsec.yaml it gives me this error:
error
Here is my project directory for the plugins folder:
directory
I feel like I'm doing something really dumb, but I would appreciate any help.
Looks like the folder structure is not as expected. If you follow the quick start guide, you need to identify the plugin folder:
Unzip the downloaded HERE SDK for Flutter package. This folder contains various files including this documentation.
Inside you will find a TAR file that contains the HERE SDK for Flutter plugin.
Now unzip the plugin, then rename the folder to 'here_sdk' and place it to the plugins folder inside the example app's directory.
So, you need to unzip the package and then again inside the package you need to unzip the TAR (containing the plugin).
Related
After using the command to create a flutter project, why can't a directory be created in the lib directory? At present, it seems that only a package can be created, as shown in the figure:
Its default sturcture. your main folder is lib folder where you can add dart files.
Please check in the project structure setting - is there flutter path is set or not..if not then provide the path..
Make sure you install Flutter & dart plugin in the android studio...
Install flutter and dart first.
Set up environmentals path for flutter. Link for adding path
Fore More
I want to add the MoCapX Maya plugin with Maya 2018. I downloaded the plugin (which included icons, plug-ins, and scripts folders). In C:{username}\Documents\maya\2018, I edited the Maya.env file to
MAYA_MODULE_PATH=D:\Downloads\MocapX
which is the file path to the plugin. When I open Maya's Plug-in Manager, the plug-in appears but when I check the loaded checkbox I get.
// Error: file: C:/Program Files/Autodesk/Maya2018/scripts/others/pluginWin.mel line 290: Unable to dynamically load : D:/Downloads/MoCapX/plug-ins/mocapx_plugin.mll
The specified procedure could not be found.
//
// Error: file: C:/Program Files/Autodesk/Maya2018/scripts/others/pluginWin.mel line 290: The specified procedure could not be found.
(mocapx_plugin) //
Any ideas? I also cleared the prefs by renaming the prefs folder to oldPrefs but that didn't help either.
The error looks like the plugin might have a dependency to a script file. This could be an AETemplate file, if the plugin creates dependency nodes for instance.
The variable MAYA_MODULE_PATH is not looking for scripts and plugins but is looking for a module file.
A module file has it's own variables inside to tell maya where to find scripts and plugins.
Check the Maya 2018 help Distributing Multi-File Modules for information about how to create a module file that maya will recognise and allow the plugin to load with its respective scripts and resources.
To confirm that the plugin works in the first place, you could copy the scripts to the scripts folder in Documents/maya/2018/scripts
and the plugin to the plug-ins folder Documents/maya/2018/plug-ins.
If you still get the same error, then it's not a problem with distribution but then there is something broken in the plugin itself.
Most of the time, whenever this error pops up, maya has trouble finding certain .dll files or other important files for the plugin.
Have you tried moving the Plugin to your current versions plugin folder ?
This could eliminate some path problems while loading.
This is what works for me in Win 10/Maya 2018.5:
download the latest version of the plugin (mocapx_2.2.1_Maya2018_win) from:
[Mocapx Plugin download][1]
[1]: https://www.mocapx.com/download/
extract the contents of the folder to:
C:\Program Files\Mocapx (DO NOT create SUBFOLDERS!!)
Go to :
C:\Users\YOURUSERNAMEHERE\Documents\maya\2018
and add this line with Notepad:
MAYA_MODULE_PATH=C:\Program Files\Mocapx
Make sure that shelf_MocapX.mel is located at:
C:\Users\YOURUSERNAMEHERE\Documents\maya\2018\prefs\shelves
Hope this helps!
LAO
I have an app in which I edited pubspec.yaml file and all files on /lib folder.
If I create a new project in flutter, which files are necessary to copy from that project to have a copy of that app? Is it only "those files that I edited" or there are some files automatically being edited when I edit pubspec.yaml or any file from /lib folder which I should also copy them in order to my older app work in a new project properly?
The generated files can be generated again, no worries. If you know for sure all the files you have edited, you can copy them. But if you change the package, you'd have to change the imports in the files as well. As João Soares said, you should also run flutter packages get to get all the packages you have on your pubspec.yaml
I would like to download file to the asset folder in flutter but i cant find any plugin that supports such task because all plugins download file to either internal or external storage,Help me please I have struggled like two days nothing works
I am following a tutorial from AndroidHive on how to login to Twitter from my app.
The tutorial uses the twitter4j library, so I download it from here and save the zip file to my desktop. In my project I drag the twitter4j zip file into my projects libs folder. Then I Refactor -> Rename the file from a zip to a jar (only changing the extension)
However, when I want to import the classes into my project, it does not seem to be working. I try to do
import twitter4j.Twitter;
But this option is not available. See screen grab.
Can anyone please tell me where I am going wrong with this?
Also, as per the tutorial I have also just added the twitter4j-core file to the project but still imports wont seem to work.
The tutorial clearly says "Download and Extract" That does not mean "Download and Rename". It means download the file and then Use a file compress/uncompress utility to extract the zipped files format. Search in the extracted files to find the relevant jar file and import that file.
1. Download & extract twitter4j library from twitter4j-android-2.2.6.zip (slimmed version for Android platform). Here is the direct link
If you uncompressed correctly then do the following
Right sure that the folder where you copied the twitter library shows up in the Lib path for the project. Right click on the project --> Select 'Properties' ---> Select 'Java Build Path' From the Left hand Menu ---> Select Libraries Tab. Review List of Libraries(expand if needed ) to see if the twitter jar files show up here.
If not Select 'Add Jar' browse to the Jar file. Add it. Refresh your project. Clean it and build. You should now be able to import twitter components.