-
Notifications
You must be signed in to change notification settings - Fork 87
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
Add Androidx support #230
Comments
Part of the solution I came to was to exclude some package called implementation("com.f2prateek.dart:dart:3.0.3") {
exclude group: "com.google.android", module: "android"
}
implementation("com.f2prateek.dart:dart-annotations:3.0.3") {
exclude group: "com.google.android", module: "android"
}
annotationProcessor("com.f2prateek.dart:dart-processor:3.0.3") {
exclude group: "com.google.android", module: "android"
} |
The Gradle Android Plugin makes this change unnessary. Read the release
notes:
*Migration tool for AndroidX:* When using Android Gradle plugin 3.2.0 with
Android 3.2 and higher, you can migrate your project’s local and Maven
dependencies to use the new AndroidX libraries by selecting *Refactor >
Migrate to AndroidX* from the menu bar. Using this migration tool also sets
the following flags to true in your gradle.properties file:
- *android.useAndroidX:* When set to true, the Android plugin uses the
appropriate AndroidX library instead of a Support Library. When this flag
is not specified, the plugin sets it to false by default.
- *android.enableJetifier:* When set to true, the Android plugin
automatically migrates existing third-party libraries to use AndroidX by
rewriting their binaries. When this flag is not specified, the plugin sets
it to false by default. You can set this flag to true only while
android.useAndroidX is also set to true, otherwise you get a build error.
https://developer.android.com/studio/releases/gradle-plugin
Regards,
Stephane
Le dim. 18 nov. 2018 à 12:38, Savelii Zagurskii <notifications@github.com>
a écrit :
… Part of the solution I came to was to exclude some package called
com.google.android:android:
implementation("com.f2prateek.dart:dart:3.0.3") {
exclude group: "com.google.android", module: "android"
}
implementation("com.f2prateek.dart:dart-annotations:3.0.3") {
exclude group: "com.google.android", module: "android"
}
annotationProcessor("com.f2prateek.dart:dart-processor:3.0.3") {
exclude group: "com.google.android", module: "android"
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#230 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABv33ZmyrrBLqLpjoWw-7g0nImUr35N8ks5uwcVZgaJpZM4W-PlN>
.
|
Hey @stephanenicolas, |
Thanks Savelii for letting us know. I couldn't guess you had tried the
jetifier already, sorry for that.
I am not sure to understand why DH3 would be the only library having this
issue, is it the only annotation processing based library you use ?
(it would be surprising..)
Thanks for the workaround, we will probably release an update of DH3 when
we migrate to androi as well at Groupon.
Stephane
Le lun. 19 nov. 2018 à 10:14, Savelii Zagurskii <notifications@github.com>
a écrit :
… Hey @stephanenicolas <https://github.com/stephanenicolas>,
If it was that simple, I won't be here and I really won't be bothering to
write a workaround for a non-existent issue.
In my particular case, dart was the only one who used this dependency (do
not really know what actually it serves for) and this particular library
could not be 'jetified', so I just excluded it from dart. Seems to be
working perfectly.
It might have been an issue with annotation processing not being jetified,
but it's just a guess.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#230 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABv33cR8zZ7kKTewN_5iKfI56vxLV80Jks5uwvT8gaJpZM4W-PlN>
.
|
Another work around is,
and in app build.gradle file add
|
I'm using androidx, and I'm also running into an issue when trying to call
With androidx the fragment is in package Does anyone know how I resolve this issue? |
DH 3.1.1 is gonna be released and it will make it possible to use DH 3 with android X projects. |
Please replace android gradle dependencies with Androidx. Throwing bellow error on gradle build. I am using Androidx dependencies with
google issue tracker has been reported with similar error
https://issuetracker.google.com/issues/111594366
The text was updated successfully, but these errors were encountered: