flutter_launcher_icons icon indicating copy to clipboard operation
flutter_launcher_icons copied to clipboard

[BUG] change launcher icon

Open yakkobr opened this issue 3 years ago • 0 comments

when trying to change the app icon for this error: The pubspec.lock file has changed since the .dart_tool/package_config.json file was generated, please run "pub get" again. pub finished with exit code 65

executed commands: flutter clean flutter pub cache clean flutter pub get flutter pub get flutter pub run flutter_launcher_icons:main --verbose

I disabled the antivirus and nothing solves it, it always comes back to the same error. Does anyone have any idea what it is??

:information_source: Info

flutter_launcher_icons: ^0.9.2

:scroll: Pubspec.yaml

name: apppro description:

The following line prevents the package from being accidentally published to

pub.dev using flutter pub publish. This is preferred for private packages.

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

The following defines the version and build number for your application.

A version number is three numbers separated by dots, like 1.2.43

followed by an optional build number separated by a +.

Both the version and the builder number may be overridden in flutter

build by specifying --build-name and --build-number, respectively.

In Android, build-name is used as versionName while build-number used as versionCode.

Read more about Android versioning at https://developer.android.com/studio/publish/versioning

In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.

Read more about iOS versioning at

https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html

version: 1.0.0+1

environment: sdk: ">=2.13.0 <3.0.0" flutter: ">=2.5.0"

Dependencies specify other packages that your package needs in order to work.

To automatically upgrade your package dependencies to the latest versions

consider running flutter pub upgrade --major-versions. Alternatively,

dependencies can be manually updated by changing the version numbers below to

the latest version available on pub.dev. To see which dependencies have newer

versions available, run flutter pub outdated.

dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter

The following adds the Cupertino Icons font to your application.

Use with the CupertinoIcons class for iOS style icons.

cupertino_icons: ^1.0.2 http: ^0.13.0 google_maps_flutter: ^2.0.1 web_socket_channel: ^2.0.0 progress_hud: ^1.1.0 intl: 0.17.0 shared_preferences: ^2.0.5 fluttertoast: ^8.0.3 webview_flutter: ^2.0.2 flutter_staggered_grid_view: ^0.4.0 firebase_messaging: ^10.0.7 url_launcher: ^6.0.2 flutter_redux: ^0.8.2 redux_logging: ^0.5.0 percent_indicator: 3.0.1 jiffy: ^4.1.0 android_intent: ^2.0.0 permission_handler: ^8.1.4+2 geolocator: ^7.0.1 flutter_local_notifications: ^8.0.0 curved_navigation_bar: ^1.0.1 meu_componente: path: '/empresa/apppro/lib/components/meu_componente/' version: ^0.0.1

dev_dependencies: build_runner: ^2.1.2 json_serializable: ^5.0.0 flutter_launcher_icons: ^0.9.2 flutter_test: sdk: flutter

The "flutter_lints" package below contains a set of recommended lints to

encourage good coding practices. The lint set provided by the package is

activated in the analysis_options.yaml file located at the root of your

package. See that file for information about deactivating specific lint

rules and activating additional ones.

#flutter_lints: ^1.0.0

For information on the generic Dart part of this file, see the

following page: https://dart.dev/tools/pub/pubspec

flutter_icons: android: true ios: true remove_alpha_ios: true image_path: "assets/images/logo.png"

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 assets: - assets/images/logo.png - assets/images/ - assets/icons/ - assets/lang/

To add assets to your application, add an assets section, like this:

assets:

- images/a_dot_burr.jpeg

- images/a_dot_ham.jpeg

An image asset can refer to one or more resolution-specific "variants", see

https://flutter.dev/assets-and-images/#resolution-aware.

For details regarding adding assets from package dependencies, see

https://flutter.dev/assets-and-images/#from-packages

To add custom fonts to your application, add a fonts section here,

in this "flutter" section. Each entry in this list should have a

"family" key with the font family name, and a "fonts" key with a

list giving the asset and other descriptors for the font. For

example:

fonts:

- family: Schyler

fonts:

- asset: fonts/Schyler-Regular.ttf

- asset: fonts/Schyler-Italic.ttf

style: italic

- family: Trajan Pro

fonts:

- asset: fonts/TrajanPro.ttf

- asset: fonts/TrajanPro_Bold.ttf

weight: 700

fonts: - family: OpenSans fonts: - asset: fonts/OpenSans-Bold.ttf - asset: fonts/OpenSans-BoldItalic.ttf - asset: fonts/OpenSans-ExtraBold.ttf - asset: fonts/OpenSans-ExtraBoldItalic.ttf - asset: fonts/OpenSans-Italic.ttf - asset: fonts/OpenSans-Light.ttf - asset: fonts/OpenSans-LightItalic.ttf - asset: fonts/OpenSans-Regular.ttf - asset: fonts/OpenSans-SemiBold.ttf - asset: fonts/OpenSans-SemiBoldItalic.ttf

For details regarding fonts from package dependencies,

see https://flutter.dev/custom-fonts/#from-packages

################## TRACE ############################ PS G:\empresa\apppro> flutter pub run flutter_launcher_icons:main --verbose [+3929 ms] executing: [C:\temp\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [+2047 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ +29 ms] 18116933e77adc82f80866c928266a5b4f1ed645 [ +7 ms] executing: [C:\temp\flutter/] git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645 [ +273 ms] Exit code 0 from: git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645 [ +35 ms] 2.5.3 [ +123 ms] executing: [C:\temp\flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +415 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ +27 ms] origin/stable [ +101 ms] executing: [C:\temp\flutter/] git ls-remote --get-url origin [ +411 ms] Exit code 0 from: git ls-remote --get-url origin [ +213 ms] https://github.com/flutter/flutter.git [+5346 ms] executing: [C:\temp\flutter/] git rev-parse --abbrev-ref HEAD [+1546 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ +47 ms] stable [ +909 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ +842 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ +241 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +242 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +257 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ +4 ms] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update. [ +303 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ +91 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ +2 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ +3 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ +32 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +407 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update. [ +6 ms] Artifact Instance of 'GradleWrapper' is not required, skipping update. [ +2 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +2 ms] Artifact Instance of 'FlutterSdk' is not required, skipping update. [ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ +16 ms] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update. [ +3 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'PubDependencies' is not required, skipping update. [ +136 ms] Using C:\temp\flutter.pub-cache for the pub cache. [ +3 ms] executing: C:\temp\flutter\bin\cache\dart-sdk\bin\pub run flutter_launcher_icons:main --verbose The pubspec.lock file has changed since the .dart_tool/package_config.json file was generated, please run "pub get" again. [+3755 ms] "flutter run" took 6,584ms. [ +63 ms] pub finished with exit code 65 [ +29 ms] #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3) #1 _DefaultPub.interactively (package:flutter_tools/src/dart/pub.dart:391:7) #2 PackagesForwardCommand.runCommand (package:flutter_tools/src/commands/packages.dart:247:5)
#3 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1125:27) #4 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
#5 CommandRunner.runCommand (package:args/command_runner.dart:209:13) #6 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9) #7 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
#8 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5) #9 run.. (package:flutter_tools/runner.dart:62:9) PS G:\empresa\apppro> flutter pub run flutter_launcher_icons:main --verbose [ +69 ms] executing: [C:\temp\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +453 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ +2 ms] 18116933e77adc82f80866c928266a5b4f1ed645 [ +1 ms] executing: [C:\temp\flutter/] git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645 [ +53 ms] Exit code 0 from: git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645 [ ] 2.5.3 [ +9 ms] executing: [C:\temp\flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +45 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/stable [ ] executing: [C:\temp\flutter/] git ls-remote --get-url origin [ +43 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +128 ms] executing: [C:\temp\flutter/] git rev-parse --abbrev-ref HEAD [ +46 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] stable [ +82 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +62 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update. [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update. [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update. [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update. [ ] Artifact Instance of 'PubDependencies' is not required, skipping update. [ +34 ms] Using C:\temp\flutter.pub-cache for the pub cache. [ ] executing: C:\temp\flutter\bin\cache\dart-sdk\bin\pub run flutter_launcher_icons:main --verbose The pubspec.lock file has changed since the .dart_tool/package_config.json file was generated, please run "pub get" again. [ +466 ms] "flutter run" took 621ms. [ +6 ms] pub finished with exit code 65 [ +5 ms] #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3) #1 _DefaultPub.interactively (package:flutter_tools/src/dart/pub.dart:391:7) #2 PackagesForwardCommand.runCommand (package:flutter_tools/src/commands/packages.dart:247:5)
#3 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1125:27) #4 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
#5 CommandRunner.runCommand (package:args/command_runner.dart:209:13) #6 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9) #7 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
#8 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5) #9 run.. (package:flutter_tools/runner.dart:62:9) #10 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
#11 main (package:flutter_tools/executable.dart:92:3)

[ +165 ms] ensureAnalyticsSent: 157ms [ +1 ms] Running shutdown hooks [ ] Shutdown hooks complete [ ] exiting with code 65

########################### FLUTTER DOCTOR ################################# PS G:\empresa\libersat\Extras> flutter doctor -v [✓] Flutter (Channel stable, 2.5.3, on Microsoft Windows [Version 10.0.19043.1320], locale en-US) • Flutter version 2.5.3 at C:\temp\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 18116933e7 (3 weeks ago), 2021-10-15 10:46:35 -0700 • Engine revision d3ea636dc5 • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) • Android SDK at C:\Users\efepim\AppData\Local\Android\Sdk
• Platform android-31, build-tools 31.0.0 • ANDROID_HOME = C:\Users\efepim\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189) • All Android licenses accepted.

[✓] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Android Studio (version 2020.3) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.62.0) • VS Code at C:\Users\efepim\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.28.0

[✓] Connected device (3 available) • sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator) • Chrome (web) • chrome • web-javascript • Google Chrome 95.0.4638.54 • Edge (web) • edge • web-javascript • Microsoft Edge 95.0.1020.44

• No issues found!

######################## PATH IMAGE ############################ photo_2021-11-07_16-41-33

yakkobr avatar Nov 07 '21 19:11 yakkobr