Comments (7)
Another work around is,
in your project's build.gradle file add
dependencies {
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
...
//TODO: Fix for new jetifier issue. Not be needed in gradle version 3.2.2
classpath 'com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta02'
}
and in app build.gradle file add
dependencies {
...
//TODO: Fix for new jetifier issue. Not be needed in gradle version 3.2.2
kapt 'com.android.tools.build.jetifier:jetifier-core:1.0.0-beta02'
annotationProcessor 'com.android.tools.build.jetifier:jetifier-core:1.0.0-beta02'
}
from dart.
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"
}
from dart.
from dart.
Hey @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.
from dart.
from dart.
I'm using androidx, and I'm also running into an issue when trying to call Dart.inject(this)
within my basefragment class. I keep getting the error
None of the following functions can be called with the arguments supplied:
public open fun inject(p0: Activity!): Unit defined in com.f2prateek.dart.Dart
public open fun inject(p0: Fragment!): Unit defined in com.f2prateek.dart.Dart
With androidx the fragment is in package androidx.fragment.app.Fragment
instead of android.app.Fragment
which I think might be causing the issue. I also have jetifier enabled android.enableJetifier=true
. Using henson|dart version 2.0.3
Does anyone know how I resolve this issue?
from dart.
DH 3.1.1 is gonna be released and it will make it possible to use DH 3 with android X projects.
We don't have any plan for making things better for DH 2.
from dart.
Related Issues (20)
- Logo/Icon Proposal HOT 12
- Dart 2.0 can't find ExtraInjector with Proguard minify enabled
- Why is MyActivity1NavigationModel extends Activity? HOT 2
- Multi module using DH3, M2 to M1 cycle navigation HOT 15
- Create kotlin sample
- Check NavigationModel FQN at compile time
- Update integration tests to consider the new NavigationModel
- Whether it can support Kotlin 1.2.x ?
- [DH3] java.lang.RuntimeException: java.lang.ClassNotFoundException HOT 2
- [DH]Not generated “IntentBuilder” HOT 2
- Remove verbose log
- Introduce reflection artifact for use during development
- Support Incremental annotation processing HOT 1
- Use gradle 4.9 and AGP 3.3 task configuration avoidance HOT 1
- Android module with DH-3 enabled recompile `AndroidJavaCompile` when no changes occurred. HOT 4
- Can't use DH3 in Android Dynamic Feature Module HOT 5
- DH2.1 to DH3 migration questions HOT 4
- Build Failed with Gradle 6.6 HOT 10
- The plugin does not support Configuration Caching HOT 27
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart.