草庐IT

St9bad_alloc

全部标签

Android Studio,9 补丁和 "Show Bad Patches"按钮。它怎么知道?

我正在尝试清理一个包含大量9-patch图像(50个左右)的大型项目。我发现的一件事是,当一个android项目从Eclipse迁移到AndroidStudio时,系统会查看9个补丁镜像以确保它们符合标准。而且我遇到了很多gradle错误。我见过的关于9补丁的最佳描述是simpleguidetoninepatch.AndroidStudio包含一个9补丁编辑器工具。正是使用该工具将我带到了这里。该工具有一个按钮可以切换“显示坏补丁/隐藏坏补丁”。我在努力理解“坏补丁”的概念。引用:Androiddocument,describingtheuseofthatbutton.Showbadp

Socket Connect 上的 Android 2.2 和 "Bad address family"

我有一个相当简单的游戏,可以在2.1之前的每个版本上完美运行,但是随着新的2.2(Froyo)版本的发布,我无法创建插槽。我正在为nio使用mina包,并得到这个异常:W/System.err(263):java.net.SocketException:BadaddressfamilyW/System.err(263):atorg.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(NativeMethod)W/System.err(263):atorg.apache.harmo

android - E/libEGL : validate_display:255 error 3008 (EGL_BAD_DISPLAY) on Nexus 9 + Android 6

我正在将Cordova3.4中的旧大型应用程序从Eclipse移植到AndroidStudio,因为该应用程序使用的库现已在Android6中更新。在build.gradle和settings.gradle出现一些问题后,应用程序构建、运行,我可以制作apk。在搭载Android5的设备上一切正常。在Nexus9上使用Android6时,应用程序崩溃,出现白屏并出现以下错误:E/libEGL:validate_display:255error3008(EGL_BAD_DISPLAY)在Internet上我找不到这个问题的答案,我尝试处理图像分辨率,但问题没有解决。本帖Error“val

Android 有时我得到 android.app.RemoteServiceException : Bad notification posted from package. 为什么?

我的通知有一个严重的问题。有时,当我的应用发布相同的自定义通知时,我会收到此错误:android.app.RemoteServiceException:Badnotificationpostedfrompackagecom.packagename:Couldn'texpandRemoteViewsfor:ClassName(package=com.packagenameid=0tag=nullnotification=Notification(vibrate=null,sound=null,defaults=0x0,flags=0x22))atandroid.app.ActivityT

Android 模拟器错误:std::bad_alloc

我正在使用EclipseJuno和Android模拟器(SDKTools21.1),我多次遇到此错误(好吧,6小时内有两到三次):[2013-03-2211:41:19-Emulator]terminatecalledafterthrowinganinstanceof'std::bad_alloc'[2013-03-2211:41:19-Emulator]what():std::bad_alloc[2013-03-2211:41:19-Emulator][2013-03-2211:41:19-Emulator]ThisapplicationhasrequestedtheRuntimet

android - Android Studio 模拟器报错 "EGL_BAD_MATCH"

我有一个问题,那是什么?E/EGL_emulation:tid3912:eglSurfaceAttrib(1146):error0x3009(EGL_BAD_MATCH)我应该怎么做才能解决该错误?publicclassMainextendsAppCompatActivity{publicTextViewscore;publicImageViewalergator1;publicImageViewalergator2;publicFrameLayoutframe;publicintscoreINT;publicfloatframeHigh;publicfloatframeWidh;pu

android - 读取失败 : EBADF (Bad file number)

当我尝试将外部存储的一个文件复制到文件夹数据库时,会发生此错误:java.io.IOException:readfailed:EBADF(Badfilenumber)这个错误发生在这个方法的while行privatevoidcopiarBaseDados(InputStreaminput)throwsIOException{OutputStreamoutput=newFileOutputStream(ConfiguracoesBaseDados.BANCO_PATH+ConfiguracoesBaseDados.BANCO_NOME);inttamanho;byte[]buffer=n

android - 为什么 AudioRecord.getMinBufferSize 会返回 ERROR_BAD_VALUE (-2)?

我正在三星GalaxySi9000上对此进行测试。intsampleRate=44100;intbufferSize=AudioRecord.getMinBufferSize(sampleRate,AudioFormat.CHANNEL_IN_MONO,AudioFormat.ENCODING_PCM_8BIT);它返回-2ERROR_BAD_VALUE。native采样率为44100Hz,由返回AudioTrack.getNativeOutputSampleRate(AudioManager.STREAM_SYSTEM).我尝试将采样率设置为1000、8000、22100和44100

构建vue大项目报错:Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memo

环境Windows10vscode过程今天在构建一个Vue大项目时(我使用的是yarnrunbuild命令构建项目),遇到一个内存不足的报错,如下:FATALERROR:Ineffectivemark-compactsnearheaplimitAllocationfailed-JavaScriptheapoutofmemory1:00007FF73231012Fnode_api_throw_syntax_error+1754072:00007FF732295AF6SSL_get_quiet_shutdown+631103:00007FF732296EB2SSL_get_quiet_shutdo

Android 样式资源编译 (aapt) 失败 : Bad resource table: header size 0xc

我刚刚花了几个小时处理一个可怕的Android资源预编译问题,该问题与样式有关,并且想知道任何人都可以解释导致它的原因。我修好了,但不知道问题出在哪里。Android说错误在colors.xml中而不是在另一个xml中,这没有帮助。第1步-重现错误Givenastyle@id/title_containerfill_parent@dimen/title_heighthorizontal@color/title_color_light我复制了,给了它新的,android:id@id/info_container@id/title_containerfill_parent@dimen/ti