Closed lesiaki closed 4 years ago
Already supported androidx
/hosted/pub.dartlang.org/flutter_share_me-0.4.0/android/src/main/java/zhuoyuan/li/fluttershareme/util/FileUtil.java:12: error: package androidx.core.content does not exist import androidx.core.content.FileProvider; ^
This is the error it fires on version ^0.4.0
Is there any introduction to androidx?
Hi @lizhuoyuan
The issue is still present I am using flutter_share_me 0.5.0
this is the output I am getting
What went wrong: Execution failed for task ':app:processDebugResources'.
Android resource linking failed C:\Users\Vicky Salunkhe.gradle\caches\transforms-1\files-1.1\jetified-facebook-share-5.0.1.aar\5f6cd7aad4f933e3f70c5609099a4409\res\drawable\com_facebook_button_send_background.xml:27: AAPT: error: resource color/com_facebook_button_background_color_focused_disabled (aka com.writco:color/com_facebook_button_background_color_focused_disabled) not found.
C:\Users\Vicky Salunkhe.gradle\caches\transforms-1\files-1.1\jetified-facebook-share-5.0.1.aar\5f6cd7aad4f933e3f70c5609099a4409\res\drawable\com_facebook_button_send_background.xml:40: AAPT: error: resource color/com_facebook_button_background_color_focused (aka com.writco:color/com_facebook_button_background_color_focused) not found.
C:\Users\Vicky Salunkhe.gradle\caches\transforms-1\files-1.1\jetified-facebook-share-5.0.1.aar\5f6cd7aad4f933e3f70c5609099a4409\res\drawable\com_facebook_button_send_background.xml:41: AAPT: error: resource color/com_facebook_button_border_color_focused (aka com.writco:color/com_facebook_button_border_color_focused) not found.
error: failed linking file resources.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1m 16s
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app. See https://goo.gl/CP92wY for more information on the problem and how to fix it.
Is there any introduction to androidx?
Hi @lizhuoyuan you can find the documentation related to androidX here. https://goo.gl/CP92wY
Hello, is this has been resolved? I have this problem too with 0.6.0
I had this same problem, also previously had upgraded to android x https://stackoverflow.com/a/57548381/8370475 worked for me
This problem was resolved by adding the colours in the android/app/src/res/values/colors.xml
<color name="com_facebook_button_background_color_focused">#3C5A99</color>
<color name="com_facebook_button_border_color_focused">#3C5A99</color>
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app. See https://goo.gl/CP92wY for more information on the problem and how to fix it.