草庐IT

androidX

全部标签

flutter - 所有与编译不同的 AndroidX 版本

我已将我的项目迁移到AndroidX,因为我遇到了一些错误,但现在我收到一个错误循环,表明androidX类的版本与编译时不同:Androiddependency'androidx.fragment:fragment'hasdifferentversionforthecompile(1.0.0-rc01)andruntime(1.1.0-alpha04)classpath.YoushouldmanuallysetthesameversionviaDependencyResolution而且它总是一个不同的类,我已经尝试过实现这段代码,但是每次我添加一行时,它都会给我其他与编译不同的类:

android - Flutter 无法在设备导入 androidx.annotation.Nullable 上运行应用程序

Initializinggradle...Resolvingdependencies...Gradletask'assembleDebug'...registerResGeneratingTaskisdeprecated,useregisterGeneratedResFolders(FileCollection)registerResGeneratingTaskisdeprecated,useregisterGeneratedResFolders(FileCollection)registerResGeneratingTaskisdeprecated,useregisterGenera

android-studio - 无法将 Flutter 项目迁移到 AndroidX

我在AndroidStudio中有一个Flutter项目。我计划迁移到AndroidX。每当我执行Refactor->MigratetoAndroidX时,AndroidStudio都会显示错误消息:YouneedtohavecompileSdksettoatleast28inyourmodulebuild.gradletomigratetoAndroidX.但是我已经在我的app/gradle.build文件中设置了compileSdkVersion28。我还有什么需要做的吗? 最佳答案 我能够解决我的问题:在AndroidStu

android - Androidx 迁移后 Unresolved reference R

在Gradle脚本的build.gradle(模块:app)中更新我的依赖项后,我的所有布局、字符串、由R定义的所有引用都不可用。我在模块应用程序中有以下代码:subprojects{project.configurations.all{resolutionStrategy.eachDependency{details->if(details.requested.group=='com.android.support'&&!details.requested.name.contains('multidex')){details.useVersion"28.0.0"}if(details

Android 在将 androidx 生物识别更新为 1.0.0-alpha04 后崩溃

使用'androidx.biometric:biometric:1.0.0-alpha03'一切正常,但是当我使用最新的'androidx.biometric:biometric:1.0.0构建项目时-alpha04'并调用myBiometricPrompt.authenticate(promptInfo)它会抛出此异常:FragmentManager已经在执行事务。这是堆栈跟踪:java.lang.IllegalStateException:FragmentManagerisalreadyexecutingtransactionsatandroidx.fragment.app.Fra

android - 无法解析 : androidx. 生命周期 :lifecycle-viewmodel-ktx:1. 1.1

我正在尝试使用适用于android的新导航架构组件,但出现错误无法解决:androidx.lifecycle:lifecycle-viewmodel-ktx:1.1.1当我将生命周期版本定义为“1.1.1”时我基本上只是在复制和粘贴文档中的内容,所以我对这里的问题已经没有想法了:(applyplugin:'com.android.application'applyplugin:'kotlin-android'applyplugin:'kotlin-android-extensions'applyplugin:'kotlin-kapt'android{compileSdkVersion2

android - Dagger 2 androidx fragment 不兼容类型

我正在使用Dagger2.21,当我尝试这样做时@ModuleinternalabstractclassFragmentModule{@ContributesAndroidInjectorinternalabstractfunloginFragment():LoginFragment}和@Singleton@Component(modules=[AndroidSupportInjectionModule::class,AppModule::class,ActivityModule::class,ViewModelBuilder::class,ViewModelModule::class

android - 谷歌身份验证迁移到 androidx : SignInHubActivity does not implement Lifecycle

迁移到AndroidX后,我遇到了GoogleAuthlib的以下问题:在Android9API28上:java.lang.IncompatibleClassChangeError:Class'com.google.android.gms.auth.api.signin.internal.SignInHubActivity'doesnotimplementinterface'androidx.lifecycle.LifecycleOwner'incallto'androidx.lifecycle.Lifecycleandroidx.lifecycle.LifecycleOwner.ge

AndroidX:Appcompat I:艺术错误 android.view.View$OnUnhandledKeyEventListener

在一个新创建的带有Androidx:appcompat:appcompat:1.0.0-rc01的项目中,我得到了java.lang.ClassNotFoundException:Didn'tfindclass"android.view.View$OnUnhandledKeyEventListener"onpath:DexPathList我还添加了配置。全部configurations.all{resolutionStrategy.eachDependency{DependencyResolveDetailsdetails->defrequested=details.requested

android - 迁移到 AndroidX 时无法解析变量 '${animal.sniffer.version}'

我正在使用AndroidStudio3.2Beta5将我的项目迁移到AndroidX。当我重建我的应用程序时,我遇到了这些错误:ERROR:[TAG]Failedtoresolvevariable'${animal.sniffer.version}'ERROR:[TAG]Failedtoresolvevariable'${junit.version}'完全清理和重建不起作用!有谁知道如何解决这个问题?gradle.propertiesandroid.enableJetifier=trueandroid.useAndroidX=truebuild.gradlebuildscript{re