zsajjad / react-native-text-detector

Text Detector from image for react native using firebase MLKit on android and Tesseract on iOS
MIT License
221 stars 60 forks source link

Unable to build App after latest google library release #22

Open pavanshettyks opened 5 years ago

pavanshettyks commented 5 years ago

I get the following error when I build the app:

` ....1\android\app\src\debug\AndroidManifest.xml:22:18-91 Error:
        Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
        is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
        Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:7:5-117 to override.

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger. 

I found out that this was due to update Google Play Services and Firebase . This forces to use androidx dependencies causing most of dependent builds to fail.

Thanks to comments in : https://github.com/facebook/react-native/issues/25301

Whether anyone working on a fix for this issue?

narghev commented 4 years ago

I have the same issue.