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

Version solving failed #70

Closed
hetkpatel opened this issue Aug 20, 2018 · 4 comments
Closed

Version solving failed #70

hetkpatel opened this issue Aug 20, 2018 · 4 comments

Comments

@hetkpatel
Copy link

hetkpatel commented Aug 20, 2018

I am trying to run my flutter project on my Samsung S7 but I keep getting the following error.

The current Dart SDK version is 2.1.0-dev.0.0.flutter-be6309690f.`

Because veggie_diet depends on location >=1.0.1 which requires SDK version <2.0.0, version solving failed.

pub get failed (1)

My guess is it might be something wrong with my pubspec.yaml:

dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.0
  image_picker: ^0.4.2
  url_launcher: ^3.0.0
  firebase_auth: 0.5.9
  location: ^1.3.4
  firebase_database: ^0.4.6
  firebase_storage: ^0.3.5

dev_dependencies:
  flutter_test:
    sdk: flutter


# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

I also have no errors when running flutter doctor

[✓] Flutter (Channel master, v0.5.9-pre.80, on Mac OS X 10.13.6 17G65, locale en-US)
    • Flutter version 0.5.9-pre.80 at /Users/hetpatel/Documents/development/flutter
    • Framework revision 809721d0ee (2 days ago), 2018-08-17 18:34:05 -0700
    • Engine revision 4ee648914f
    • Dart version 2.1.0-dev.0.0.flutter-be6309690f

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Volumes/HPBD2017/AndroidSDK
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • Java binary at: /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/bin/java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_112-b16)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.4.1, Build version 9F2000
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.2

[✗] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).

[✓] VS Code (version 1.26.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.17.1

[✓] Connected devices (1 available)
    • SM G930T • fc204956 • android-arm64 • Android 8.0.0 (API 26)
@bjon
Copy link

bjon commented Aug 20, 2018

Try this as a workaround.

dependency_overrides:
  location: ^1.3.4

@hetkpatel
Copy link
Author

hetkpatel commented Aug 21, 2018

Thank you, @bjon, now it lets me build and run the application on my device.

But, when running location.getLocation(), it returns PlatformException(ERROR, Failed to get location, null)

Log:

D/ViewRootImpl@3794028[MainActivity]( 1439): ViewPostIme pointer 0
D/ViewRootImpl@3794028[MainActivity]( 1439): ViewPostIme pointer 1
D/ViewRootImpl@3794028[MainActivity]( 1439): ViewPostIme pointer 0
D/ViewRootImpl@3794028[MainActivity]( 1439): ViewPostIme pointer 1
D/ViewRootImpl@3794028[MainActivity]( 1439): ViewPostIme pointer 0
D/ViewRootImpl@3794028[MainActivity]( 1439): ViewPostIme pointer 1
D/ViewRootImpl@3794028[MainActivity]( 1439): ViewPostIme pointer 0
D/ViewRootImpl@3794028[MainActivity]( 1439): ViewPostIme pointer 1
I/flutter ( 1439): Get Image
D/ViewRootImpl@3794028[MainActivity]( 1439): MSG_WINDOW_FOCUS_CHANGED 0
D/SurfaceView( 1439): BG show() Surface(name=Background for - SurfaceView - com.hetpatel.veggiediet/com.hetpatel.veggiediet.MainActivity@93636d4@0) io.flutter.view.FlutterView{93636d4 VFE...... .F...... 0,0-1440,2560}
D/SurfaceView( 1439): surfaceDestroyed 1 io.flutter.view.FlutterView{93636d4 VFE...... .F...... 0,0-1440,2560}
D/SurfaceView( 1439): BG destroy() Surface(name=Background for - SurfaceView - com.hetpatel.veggiediet/com.hetpatel.veggiediet.MainActivity@93636d4@0) io.flutter.view.FlutterView{93636d4 VFE...... .F...... 0,0-1440,2560}
D/OpenGLRenderer( 1439): eglDestroySurface = 0x797cd71870
D/ViewRootImpl@3794028[MainActivity]( 1439): Relayout returned: old=[0,0][1440,2560] new=[0,0][1440,2560] result=0x5 surface={valid=false 0} changed=true
D/ViewRootImpl@3794028[MainActivity]( 1439): Relayout returned: old=[0,0][1440,2560] new=[0,0][1440,2560] result=0x1 surface={valid=false 0} changed=false
V/Surface ( 1439): sf_framedrop debug : 0x4f4c, game : false, logging : 0
D/ViewRootImpl@3794028[MainActivity]( 1439): Relayout returned: old=[0,0][1440,2560] new=[0,0][1440,2560] result=0x7 surface={valid=true 521812918272} changed=true
D/OpenGLRenderer( 1439): eglCreateWindowSurface = 0x797cd71870
D/SurfaceView( 1439): BG show() Surface(name=Background for - SurfaceView - com.hetpatel.veggiediet/com.hetpatel.veggiediet.MainActivity@93636d4@1) io.flutter.view.FlutterView{93636d4 VFE...... .F...... 0,0-1440,2560}
V/Surface ( 1439): sf_framedrop debug : 0x4f4c, game : false, logging : 0
D/SurfaceView( 1439): surfaceCreated 1 io.flutter.view.FlutterView{93636d4 VFE...... .F...... 0,0-1440,2560}
D/SurfaceView( 1439): surfaceChanged (1440,2560) 1 io.flutter.view.FlutterView{93636d4 VFE...... .F...... 0,0-1440,2560}
D/ViewRootImpl@3794028[MainActivity]( 1439): MSG_WINDOW_FOCUS_CHANGED 1
V/InputMethodManager( 1439): Starting input: tba=android.view.inputmethod.EditorInfo@ebb4dc4 nm : com.hetpatel.veggiediet ic=null
I/InputMethodManager( 1439): startInputInner - mService.startInputOrWindowGainedFocus
I/zygote64( 1439): Do partial code cache collection, code=61KB, data=55KB
I/zygote64( 1439): After code cache collection, code=60KB, data=55KB
I/zygote64( 1439): Increasing code cache capacity to 256KB
D/ViewRootImpl@3794028[MainActivity]( 1439): Relayout returned: old=[0,0][1440,2560] new=[0,0][1440,2560] result=0x3 surface={valid=true 521812918272} changed=false
D/ViewRootImpl@3794028[MainActivity]( 1439): ViewPostIme pointer 0
D/ViewRootImpl@3794028[MainActivity]( 1439): ViewPostIme pointer 1
I/flutter ( 1439): image_8-20-2018_19:26:53
W/DynamiteModule( 1439): Local module descriptor class for com.google.android.gms.firebasestorage not found.
I/DynamiteModule( 1439): Considering local module com.google.android.gms.firebasestorage:0 and remote module com.google.android.gms.firebasestorage:6
I/DynamiteModule( 1439): Selected remote version of com.google.android.gms.firebasestorage, version >= 6
I/System.out( 1439): (HTTPLog)-Static: isSBSettingEnabled false
I/System.out( 1439): (HTTPLog)-Static: isSBSettingEnabled false
I/System.out( 1439): (HTTPLog)-Static: isSBSettingEnabled false
D/UploadTask( 1439): Increasing chunk size to 524288
I/System.out( 1439): (HTTPLog)-Static: isSBSettingEnabled false
I/System.out( 1439): (HTTPLog)-Static: isSBSettingEnabled false
D/UploadTask( 1439): Increasing chunk size to 1048576
I/System.out( 1439): (HTTPLog)-Static: isSBSettingEnabled false
I/flutter ( 1439): Stored image
I/flutter ( 1439): PlatformException(ERROR, Failed to get location., null)

#44

@bjon
Copy link

bjon commented Aug 21, 2018

I guess your right. Having the same trouble now :(

@hetkpatel
Copy link
Author

I'm not sure what I did but it seems to work now. I'm going to close this issue and hope for the best.

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

2 participants