react-native-art / art

React Native module that allows you to draw vector graphics.
https://github.com/react-native-community/art
MIT License
287 stars 78 forks source link

[Bug] error: package android.support.v4.graphics does not exist #51

Closed nighttiger1990 closed 4 years ago

nighttiger1990 commented 4 years ago

Bug

Environment info

React native info output:

info Fetching system and libraries information...
System:
    OS: macOS Mojave 10.14.5
    CPU: (4) x64 Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
    Memory: 61.13 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 10.15.3 - /usr/local/bin/node
    Yarn: 1.15.2 - /usr/local/bin/yarn
    npm: 6.4.1 - /usr/local/bin/npm
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 27, 28
      Build Tools: 27.0.3, 28.0.3
      System Images: android-28 | Google Play Intel x86 Atom
  IDEs:
    Android Studio: 3.3 AI-182.5107.16.33.5314842
    Xcode: 11.3/11C29 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0 
    react-native: 0.61.5 => 0.61.5 
  npmGlobalPackages:
    react-native-cli: 2.0.1

Library version: x.x.x

Steps To Reproduce

  1. cd android
  2. gradlew assembleDebug
  3. got error message
error: package android.support.v4.graphics does not exist import android.support.v4.graphics.ColorUtils;

Reproducible sample code

nighttiger1990 commented 4 years ago

after googling, i think this relate to AndroidX support. Then i run npx jetify and everything work like a charm. Someone can explain me?

vance-liu commented 4 years ago

Break change, please add AndroidX support. change android.support.v4.graphics.ColorUtils to androidx.core.graphics.ColorUtils

henrymoulton commented 4 years ago

Can we reopen this issue if this repository plans on supporting AndroidX?

enigmablue commented 4 years ago

Same error. It occurs on android studio But CLI seems to be OK i think because of jetify.

But i keep getting this on appcenter occasionally. Any idea?

anshul-kai commented 4 years ago

Same issue, but getting error in command line. npx jetify fixed the problem though. Would be nice to understand why.

nighttiger1990 commented 4 years ago

Can we reopen this issue if this repository plans on supporting AndroidX?

I re-open this. Hope this support AndroidX soon

Esemesek commented 4 years ago

It should be fixed in 1.2.0 release.

mangBert commented 4 years ago

@vance-liu works like a charm :)