Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deply Plugin to flutter app Error #2

Open
holan opened this issue May 28, 2020 · 2 comments
Open

Deply Plugin to flutter app Error #2

holan opened this issue May 28, 2020 · 2 comments

Comments

@holan
Copy link

holan commented May 28, 2020

can you please explain deploying the plugin to a new flutter app project..

adding github dependencies in a new project ended with errors.:

Steps:
1- created new Flutter app project
2- added dependencies to pubspec.yaml:
dependencies:
flutter_touchvg:
git:
url: git://github.com/kangshaojun/flutter_touchvg
then flutter pub get
3- replaced the project lib/main.dart with the repository of github /example/lib/main.dart
4- Run/Run without debuging : [ٍٍٍResults are:]
4-1 android:
FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project 'flutter_touchvg'.
    > SDK location not found. Define location with sdk.dir in the local.properties file or with an
    ANDROID_HOME environment variable.
**4-2 ios:**  

    error: Multiple commands produce     '/Users/myhome/Projects/pheetingboard/build/ios/Debug-iphonesimulator/flutter_touchvg/flutter_touchvg.framework/Info.plist':
1) Target 'flutter_touchvg' (project 'Pods') has copy command from '/Users/myhome/Applications/flutter/.pub-cache/git/flutter_touchvg-ccd4dc2c910e5aa6f9fff230af6de3be7a8da082/ios/Classes/TouchVG/TouchVG.bundle/Info.plist' to '/Users/myhome/Projects/pheetingboard/build/ios/Debug-iphonesimulator/flutter_touchvg/flutter_touchvg.framework/Info.plist'
2) Target 'flutter_touchvg' (project 'Pods') has process command with output '/Users/myhome/Projects/pheetingboard/build/ios/Debug-iphonesimulator/flutter_touchvg/flutter_touchvg.framework/Info.plist'

what is the proper steps to add flutter_touchvg to a new flutter app project.?

@kangshaojun
Copy link
Owner

Because i have not upload this plugin to pub.dartlang.org. You can try using relative paths to add this plug-in.

@alholan
Copy link

alholan commented Jun 3, 2020

i did same result... please can you explain how to use this plugin in a new flutter project
thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants