I fixed #2 by removing root dev-deps from pubspec.yaml.

  Now you need to fix #1 in Android Studio:

  1. Set Dart SDK path explicitly:

  - Settings -> Languages & Frameworks -> Dart
  - Point to either:
      - <flutter-sdk>/bin/cache/dart-sdk
      - or standalone Dart SDK path
  - Ensure “Enable Dart support” is on.

  2. From terminal:

  - cd /Users/kartik/StudioProjects/knex/knex-dart
  - dart pub get
  - cd /Users/kartik/StudioProjects/knex/knex-dart/example/lint_demo
  - dart pub get

  3. In Android Studio:

  - File -> Invalidate Caches / Restart
  - Reopen lint_demo (or repo root), then open lib/main.dart.

  4. Delete old stale log and recheck:

  - remove /Users/kartik/StudioProjects/knex/knex-dart/example/lint_demo/
    custom_lint.log
  - save main.dart
  - open new log; it should no longer show No such file or directory or
    version-conflict errors.

  If it still fails, send the fresh custom_lint.log and I’ll pinpoint the
  exact remaining blocker.
