Java 访问被拒绝,发现属性“vendor.debug.egl.swapinterval” 当我运行我的应用程序时,我在 android studio 中不断收到此错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/52855807/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 00:38:06  来源:igfitidea点击:

Access denied finding property "vendor.debug.egl.swapinterval" i am keep getting this error in android studio when i run my app

javaandroidandroid-studio

提问by Vishwa Ardeshna

I am getting this errors lots in lots. Here is the fraction of it.

我经常收到这个错误。这是它的一小部分。

        10-17 18:21:33.518 6476-6503/royal.com.ocr E/libc: Access denied finding property "vendor.debug.egl.swapinterval"
    10-17 18:21:41.614 6476-6503/royal.com.ocr E/libc: Access denied finding property "vendor.debug.prerotation.disable"
    10-17 18:21:41.615 6476-6503/royal.com.ocr E/libc: Access denied finding property "vendor.debug.prerotation.disable"
    10-17 18:21:41.615 6476-6503/royal.com.ocr E/libc: Access denied finding property "vendor.debug.prerotation.disable"
    10-17 18:21:41.623 6476-6503/royal.com.ocr E/libc: Access denied finding property "vendor.debug.egl.changepixelformat"
    10-17 18:21:41.656 6476-6503/royal.com.ocr E/libc: Access denied finding property "vendor.debug.egl.swapinterval"
10-17 18:21:41.682 6476-6503/royal.com.ocr E/libc: Access denied finding property "vendor.debug.egl.swapinterval"
10-17 18:21:42.965 6476-6503/royal.com.ocr E/libc: Access denied finding property "vendor.debug.egl.swapinterval"
10-17 18:21:42.972 6476-6503/royal.com.ocr E/libc: Access denied finding property "vendor.debug.egl.swapinterval"
10-17 18:21:42.993 6476-6503/royal.com.ocr E/libc: Access denied finding property "vendor.debug.egl.swapinterval"
10-17 18:21:43.010 6476-6503/royal.com.ocr E/libc: Access denied finding property "vendor.debug.egl.swapinterval"
10-17 18:21:43.023 6476-6503/royal.com.ocr E/libc: Access denied finding property "vendor.debug.egl.swapinterval"
10-17 18:21:43.036 6476-6503/royal.com.ocr E/libc: Access denied finding property "vendor.debug.egl.swapinterval"
10-17 18:21:43.054 6476-6503/royal.com.ocr E/libc: Access denied finding property "vendor.debug.egl.swapinterval"

回答by Kaushal Gosaliya

Add this line in your manifest file.

在清单文件中添加这一行。

<uses-library android:name="org.apache.http.legacy" android:required="false"/>

回答by theapache64

You might be using Android Pie+, probably OnePlus6 or above.

您可能正在使用Android Pie+,可能是 OnePlus6 或更高版本。

There are few workarounds.

解决方法很少。

  1. Highlight part of the line in your logcat that you don't want to see, right click, then go for Fold lines like this.

  2. Exclude that tag (together with "RenderThread") in Android Studio logcat filter config using this regex: ^(?!(libc|RenderThread))

  1. 突出显示 logcat 中您不想看到的部分行,右键单击,然后转到Fold lines like this.

  2. 使用以下正则表达式在 Android Studio logcat 过滤器配置中排除该标签(连同“RenderThread”): ^(?!(libc|RenderThread))

回答by Simran Singh

This is due to some rendering bug comes with API 28. Check your build.gradlefile in the project folder($PROJECT_FOLDER/android/app/). If compileSdkVersionand targetSdkVersionis set to 28. Please change it to 27.I

这是由于 API 28 附带的一些渲染错误。检查项目文件夹中的build.gradle文件 ($PROJECT_FOLDER/android/app/)。如果compileSdkVersiontargetSdkVersion设置为28。请将其更改为27.I

回答by Dinesh R Rajput

Try this one:

试试这个:

flutter run --enable-software-rendering

Working for me!

为我工作!