Skip to content

Target of URI doesn't exist when importing http_certificate_pinning: ^3.0.1 #86

@Gautam-EL

Description

@Gautam-EL

Bug Report

Package

http_certificate_pinning: ^3.0.1

Description

After adding the package to my pubspec.yaml file and running flutter pub get, I tried to import the package:

import 'package:http_certificate_pinning/http_certificate_pinning.dart';

But I got this error:

Target of URI doesn't exist: 'package:http_certificate_pinning/http_certificate_pinning.dart'

Screenshots

Import Error Screenshot

Terminal Error Screenshot

Steps to Reproduce

  1. Add dependency to pubspec.yaml:
    dependencies:
      http_certificate_pinning: ^3.0.1
  2. Run flutter pub get
  3. Import in Dart file:
    import 'package:http_certificate_pinning/http_certificate_pinning.dart';
  4. See the error

Expected Behavior

The package should be imported successfully without error.

Actual Behavior

Flutter/Dart reports that the URI does not exist.

Environment

  • Flutter version: (e.g., 3.19.2)
  • Dart version: (e.g., 3.3.1)
  • IDE: (e.g., Android Studio 2023.2.1)

Additional Notes

  • Tried flutter clean and flutter pub get
  • No luck resolving the issue

Please advise if something has changed with the package or if I'm missing a step. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions