草庐IT

EXTERNAL_PROPERTY

全部标签

android - 无效路径错误 : get the external memory size

当我调用它来获取外部内存详细信息时,出现如下错误。05-0716:55:07.710:E/AndroidRuntime(22624):FATALEXCEPTION:mainjava.lang.IllegalArgumentException:Invalidpath:/storage/emulated/005-0716:55:07.710:E/AndroidRuntime(22624):atandroid.os.StatFs.doStat(StatFs.java:46)05-0716:55:07.710:E/AndroidRuntime(22624):atandroid.os.StatF

android - Play 服务广告库 7.5.0 需要 WRITE_EXTERNAL_STORAGE 权限

这个问题在这里已经有了答案:WhyarepermissionsbeingautomaticallyaddedtomyAndroidManifestwhenincludingGooglePlayServiceslibrary(2个答案)关闭6年前。在我们的build.gradle中,我们将播放服务广告库从6.5.87更新到7.5.0compilecom.google.android.gms:play-services-ads:7.5.0升级后,我们在合并的AndroidManifest.xml中看到一个新权限(位于/build/intermediates/manifests/full/r

android 从 GL_TEXTURE_EXTERNAL_OES 读取像素

我正在尝试从绑定(bind)到GL_TEXTURE_EXTERNAL_OES的OpenGL纹理读取像素/数据。将纹理绑定(bind)到该目标的原因是因为为了在android上获得实时摄像头反馈,需要从绑定(bind)到GL_TEXTURE_EXTERNAL_OES的OpenGL纹理创建SurfaceTexture。由于android使用OpenGLES我不能使用glGetTexImage()来读取图像数据。因此我将目标绑定(bind)到FBO,然后使用readPixels()读取它。这是我的代码:GLuintframebuffer;glGenFramebuffers(1,&frameb

android - 错误 : Cannot get property 'compileSdkVersion' on extra properties extension as it does not exist

我在我的android项目中使用SpecialCyCi/AndroidResideMenu第三方库(github)。我已将ResideMenu项目导入到我的工作区并且使其成为一个模块依赖库项目。在构建项目时出现以下错误:Error:(7)Aproblemoccurredevaluatingproject':ResideMenu'.Cannotgetproperty'compileSdkVersion'onextrapropertiesextensionasitdoesnotexist 最佳答案 如果您解释得更多,我可以提供更好的帮助

【Unity】如何设置你的默认External Scripts Editor

HowtosetyourExternalScriptsEditorasdefaultIfyoujustselectVisualStudio,thenitwillbeenreseteverytimeyoureopenyourUnityEditorSoyoucouldclickBrowse,andselectforexample:C:\MicrosoftVisualStudio\2022\Community\Common7\IDE\devenv.exeReopenUnityEditor,youwillseeitisdefaultnow.1.Edit-Preferences如果你在这里的Extern

java - 错误 : Could not get unknown property 'config' for object of type com. google.gms.googleservices.GoogleServicesPlugin$GoogleServicesPluginConfig

这个问题在这里已经有了答案:Couldnotgetunknownproperty'config'fortypecom.google.gms.googleservices.GoogleServicesPlugin$GoogleServicesPluginConfig(2个答案)关闭3年前。在我将我的googleplay服务依赖项升级到之后classpath'com.google.gms:google-services:4.2.0'至classpath'com.google.gms:google-services:4.3.0'

android - 无法在 Android 中创建外部文件目录。 WRITE_EXTERNAL_STORAGE 存在

我尝试同时使用我的ApplicationContext和调用Service的Context来访问外部目录。不幸的是,它一直返回null,并且LogCat报告它无法创建外部目录。我确定我有WRITE_STORAGE_PERMISSION,但它仍然无法正常工作。我的设备运行的是API10(2.3.3)vanillaandroid。有什么想法吗?这是我的list:这里是代码困惑的地方:privatebooleancanWriteEx(){Stringstate=Environment.getExternalStorageState();if(state.equals(Environment.

android - 在 Android M 中授予 EXTERNAL_STORAGE 所需的权限?

Android权限WRITE_EXTERNAL_STORAGE和READ_EXTERNAL_STORAGE是否会触发AndroidM的新grantpermission对话框? 最佳答案 我同意GuillaumePerrot的回答。我在AndroidManifest.xml中写入READ_WRITE_EXTERNAL_STORAGE的权限时遇到了类似的问题默认情况下没有权限显示在应用程序中,人们需要在应用程序权限中切换存储的切换按钮。然后我在build.gradle中修改我的targetSdkVersion>小于23(MNC)和其他与

android - WRITE_EXTERNAL_STORAGE 不适用于 Lollipop ,即使它已在 list 中设置

我正在尝试将图像从应用程序本地数据文件夹保存到外部存储。我的list包含以下内容(在list的应用程序标记之前):当我尝试以下操作时try{InputStreamin=newFileInputStream(filePath);FileoutPath=Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);FileoutFile=newFile(outPath,"mypicture.jpg");//tryfailsatthislineOutputStreamout=newFileOutpu

OS 4.0 上的 Android Marshmallow 权限模型始终未授予 READ_EXTERNAL_STORAGE 权限

我在AndroidOS4.0上运行我的应用程序并请求READ_EXTERNAL_STORAGE权限时遇到问题:ActivityCompat.requestPermissions(ctx,requestedPermissions,requestCode);我总是得到回调publicvoidonRequestPermissionsResult(intrequestCode,@NonNullString[]permissions,@NonNullint[]grantResults){grantResults!=PackageManager.PERMISSION_GRANTED使用Activi