gpt4 book ai didi

android - 警告 : ClassLoader referenced unknown path in Android Studio 2. 1.2

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:11:47 27 4
gpt4 key购买 nike

我是 Android 和 Android Studio 的新手。我在 Android Studio 中创建了一个 HelloWorld 项目。当我在我的设备上运行该应用程序时,我收到以下警告。我该如何修复这些警告?

6-15 11:21:22.287 962-962/com.rajiv.helloworld W/System: ClassLoader referenced unknown path: /data/app/com.rajiv.helloworld-1/lib/arm
06-15 11:21:23.136 962-962/com.rajiv.helloworld W/System: ClassLoader referenced unknown path: /data/app/com.rajiv.helloworld-1/lib/arm
06-15 11:21:23.424 962-962/com.rajiv.helloworld W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable

最佳答案

这是 instant-Run 的问题,如文档所述,在 Android 4.1 之前发出警告:

Instant Run is supported only when you deploy the debug build variant, use Android Plugin for Gradle version 2.0.0 or higher, and set minSdkVersion to 15 or higher in your app's module-level build.gradle file. For the best performance, set minSdkVersion to 21 or higher.

你可以看到完整的documentation在这里。

建议禁用Instant-run或将min-sdk设置为15或更高。

关于android - 警告 : ClassLoader referenced unknown path in Android Studio 2. 1.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37827199/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com