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

error: expected color but got (raw string) # #227

Closed
xalikoutis opened this issue Oct 27, 2021 · 1 comment
Closed

error: expected color but got (raw string) # #227

xalikoutis opened this issue Oct 27, 2021 · 1 comment

Comments

@xalikoutis
Copy link

xalikoutis commented Oct 27, 2021

Describe the bug
after generating splash images using v1.3.0 and targeting Android 12 (31)
running the Android project fails with the following error

> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
   > Android resource linking failed
     ERROR:/Users/gpapadak/Code/learnworlds/mobile-app/android/app/src/main/res/values-night-v31/styles.xml:4:5-7:13: AAPT: error: expected color but got (raw string) #.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new flutter project
  2. add flutter_native_splash: ^1.3.0 to pubspec.yaml
  3. add a png file in an assets directory at the project's root
  4. add in your flutter_native_splash.yaml:
flutter_native_splash:
  color: "#0264C0"
  image: "assets/images/splash.png"
  fullscreen: true
  1. RUN flutter pub run flutter_native_splash:create
  2. flutter run

Expected behavior
should run project

Screenshots
image

Flutter doctor

[✓] Flutter (Channel stable, 2.5.1, on macOS 11.5 20G71 darwin-x64, locale en-GR)
    • Flutter version 2.5.1 at /Users/gpapadak/fvm/versions/2.5.1
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ffb2ecea52 (6 weeks ago), 2021-09-17 15:26:33 -0400
    • Engine revision b3af521a05
    • Dart version 2.14.2

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/gpapadak/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 13.0, Build version 13A233
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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 1.8.0_242-release-1644-b3-6222593)

[✓] Android Studio (version 4.2)
    • Android Studio at /Users/gpapadak/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7351085/Android Studio.app/Contents
    • 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.8+10-b944.6916264)

[✓] Android Studio (version 4.2)
    • Android Studio at /Users/gpapadak/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7351085/Android Studio.app/Contents
    • 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.8+10-b944.6916264)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.2.3)
    • IntelliJ at /Users/gpapadak/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5632

[✓] IntelliJ IDEA Ultimate Edition (version 2021.2.3)
    • IntelliJ at /Users/gpapadak/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/212.5457.46/IntelliJ IDEA.app
    • 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

[✓] IntelliJ IDEA Ultimate Edition (version 2021.2.2)
    • IntelliJ at /Users/gpapadak/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/212.5284.40/IntelliJ IDEA.app
    • 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

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

[✓] Connected device (4 available)
    • Mi A3 (mobile)  • 1d0a10513bf0              • android-arm64  • Android 11 (API 30)
    • iPhone (mobile) • 00008030-000A74E80293402E • ios            • iOS 15.0.2 19A404
    • macOS (desktop) • macos                     • darwin-x64     • macOS 11.5 20G71 darwin-x64
    • Chrome (web)    • chrome                    • web-javascript • Google Chrome 95.0.4638.54

! Doctor found issues in 1 category.
@jonbhanson
Copy link
Owner

Thanks for the report. 👍 I will push an update soon to fix this.

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