最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - The wearApp feature for Kotlin DSL is deprecated - Stack Overflow

programmeradmin1浏览0评论

I have in my project a mobile application and a wear os application coexisting, everything works correctly, but every time I synchronize with Gradle, I get the following warning

wearApp configuration is deprecated and planned to be removed in AGP 9.0. Please do not add any dependencies to it.

I have not found any information about why I have to replace it. I have tried with implementation, but when I configure it this way and try to compile, the application tells me that I must configure the dynamicFeatures, but as far as I know my app does not use them nor is there any trace of them, why does it detect that wear is a dynamic feature, what can I do to remove this warning? My gradle file of the app module in the dependencies block looks like this:

dependencies {

    wearApp(project(":wearable"))

    implementation(libs.androidx.core.ktx)
    implementation(libs.androidx.lifecycle.runtime.ktx)
    implementation(libs.androidx.activitypose)
    implementation(platform(libs.androidxpose.bom))
    implementation(libs.ui.core)
    implementation(libs.androidx.ui.graphics)
    implementation(libs.androidx.ui.tooling.preview)
    implementation(libs.androidx.material3)
    testImplementation(libs.junit)
    androidTestImplementation(libs.androidx.junit)
    androidTestImplementation(libs.androidx.espresso.core)
    androidTestImplementation(platform(libs.androidxpose.bom))
    androidTestImplementation(libs.androidx.ui.test.junit4)
    debugImplementation(libs.androidx.ui.tooling)
    debugImplementation(libs.androidx.ui.test.manifest)
}
发布评论

评论列表(0)

  1. 暂无评论