hadikachmar3 / Udemy_Store_app

36 stars 21 forks source link

"ECommerceApp" is not a valid Dart package name. #5

Open vorakunal opened 2 years ago

vorakunal commented 2 years ago

Since this project is based on an old version of flutter.

Running "flutter pub get" in ECommerceApp...                     1,931ms
This app is using a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to migrate this app to the V2 embedding.
Take a look at the docs for migrating an app: https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects

I tried to migrate to a newer version, but it throws an error:

"ECommerceApp" is not a valid Dart package name.

See https://dart.dev/tools/pub/pubspec#name for more information.

Can we change the project name to lower case letters without affecting the rest of the project? Or any other solution to this problem Thanks

kiiru4reals commented 2 years ago

Hi, you should perhaps try to change the "import:package:(project_name):..." on all files in the lib folder to the name of your project.