我正在使用匕首和刀柄,我想将 @ActivityContext 从模块注入到适配器,但出现此错误 -
ANTLR Tool version 4.5.3 used for code generation does not match the current runtime version 4.7.1ANTLR Runtime version 4.5.3 used for parser compilation does not match the current runtime version 4.7.1ANTLR Tool version 4.5.3 used for code generation does not match the current runtime version 4.7.1ANTLR Runtime version 4.5.3 used for parser compilation does not match the current runtime version 4.7.1/mnt/My Projects/app/build/generated/source/kapt/debug/app/myapp/MyApp_HiltComponents.java:156: error: [Dagger/MissingBinding] @dagger.hilt.android.qualifiers.ActivityContext android.content.Context cannot be provided without an @Provides-annotated method.
public abstract static …Run Code Online (Sandbox Code Playgroud) 在导航图参数中为 Double 设置 defaultValue 时出错。
<argument
android:name="lat"
app:argType="java.lang.Double"
android:defaultValue="0.0"
/>
<argument
android:name="lon"
app:argType="kotlin.Double"
android:defaultValue="0.0"
/>
Run Code Online (Sandbox Code Playgroud)
我已经尝试了两者java.lang.Double并kotlin.Double使用安全参数插件。
如何传递具有默认值的 Double 参数?