草庐IT

WSA_IO_PENDING

全部标签

android - Findbugs 失败并显示 "java.io.IOException: No files to analyze could be opened"

我运行AndroidStudiov2.1.3并使用./gradlewbuild使用Findbags检测Android项目中的错误。最近开始出现错误:FAILURE:Buildfailedwithanexception.*Whatwentwrong:Executionfailedfortask':process:customFindbugs'.>java.io.IOException:Nofilestoanalyzecouldbeopened有足够的磁盘空间和RAM,除此之外,我看不出有任何特定原因会导致该错误发生。请帮助详细说明这个问题。 最佳答案

java - 警告 : Unclosed files for the types '[io.realm.OrderListRealmProxy]' ; these types will not undergo annotation processing

在编译我的Android代码时,编译器显示以下警告:警告:“[io.realm.OrderListRealmProxy]”类型的未关闭文件;这些类型不会进行注释处理”我的Realm对象类有什么问题? 最佳答案 这是因为您正在使用List而不是RealmList在您扩展了RealmObject的对象中 关于java-警告:Unclosedfilesforthetypes'[io.realm.OrderListRealmProxy]';thesetypeswillnotundergoanno

android - java.io.IOException : Received authentication challenge is null 异常

我需要一个响应代码,但它抛出了一个IOException。我不知道怎么回事!try{url=newURL(urlBuilder.toString());conn=(HttpURLConnection)url.openConnection();conn.setDoInput(true);conn.setConnectTimeout(TIME_OUT);conn.setRequestMethod(METHOD_GET);conn.setRequestProperty("accept","*/*");conn.connect();intresponseCode=conn.getRespons

java - Jenkins 执行失败 : java. io.IOException Ant 构建

我已经在debianserver上设置了Jenkins,我正在尝试创建第一个android构建,但是ant无法被调用在jenkins配置中我有:Name:Java6JAVA_HOME/usr/lib/jvm/java-6-sunName:AntHomeANT_HOME/usr/share/ant作业配置:git>repoBuildstep-AntinvokeAntVersion:AntHomeTargets:-dbuildfile:folder/folder/build.xml当我构建作业时它给我这个错误[folder]$/usr/share/ant/bin/ant-filebuild

android - java.io.File 无法转换为 org.gradle.api.artifacts.Configuration

将一个项目更新到新的gradle-plugin(14.0.2)后,我在Android-Studio中遇到问题:Error:Cause:java.io.Filecannotbecasttoorg.gradle.api.artifacts.ConfigurationPossiblecausesforthisunexpectederrorinclude:Gradle'sdependencycachemaybecorrupt(thissometimesoccursafteranetworkconnectiontimeout.)Re-downloaddependenciesandsyncproj

java - 读取文件 - java.io.FileNotFoundException

publicvoidloadFile(intlevel){try{//CreatenewfilelevelFile=newFile("assets/levels.txt");fis=newFileInputStream(levelFile);isr=newInputStreamReader(fis);reader=newBufferedReader(isr);//Codetoreadthefilegoeshere但是,使用此代码时,我不断收到上述错误(java.io.FileNotFoundException)。该文件肯定存在于我的Assets文件夹中并且具有正确的名称。我在这里发现了

android - 我的 trigger.io 应用程序的 'launchimage' 在 Galaxy Nexus 上太小

我已经为我在全新的SamsungGalaxyNexus上开发的Android应用程序设置了启动图像。"launchimage":{"android":"images/splash.png","android-landscape":"images/splash.png"},当我启动应用程序时,会显示图像。但它并没有像它应该的那样填满屏幕。图像为720x1280,这是GalaxyNexus的原始分辨率。我怎样才能显示正确大小的启动图像? 最佳答案 这似乎是由于设备像素比/像素密度导致的图像缩小。示例:SamsungGalaxyNexus

java - com.caucho.hessian.client.HessianRuntimeException : com. caucho.hessian.io.HessianProtocolException: '<' 是未知代码

我正在尝试在两个Android设备之间建立基本的Hessian通信。Client发送消息的AsyncTaskpublicclassAsyncHessianextendsAsyncTask{@OverrideprotectedStringdoInBackground(String...params){Stringurl="http://192.168.1.37:8080/test/test";try{HessianProxyFactoryfactory=newHessianProxyFactory();TServicebasic=(TService)factory.create(TSer

android - 重复的 zip 条目 [commons-io-1.3.2.jar :org/apache/commons/io/CopyUtils. 类])

我在使用minifyEnabled时收到“Duplicatezipentryerror”。AndroidStudio版本:1.0rc1操作系统版本:MacOS10.9.5JavaJRE/JDK版本:“1.7.0_71”Gradle:0.14.0这是我的一些build.gradle设置。compileSdkVersion21buildToolsVersion"21.1.1"packagingOptions{exclude'META-INF/DEPENDENCIES.txt'exclude'META-INF/LICENSE.txt'exclude'META-INF/NOTICE.txt'e

android - java.io.filenotfoundexception :/home/ljh/. android/analytics.settings(权限被拒绝)

当我启动Androidstudio时,我得到了couldnotinitializeanalytics,treatingasopt-out.java.io.filenotfoundexception:/home/ljh/.android/analytics.settings(permissiondenied)我该怎么办?我的操作系统是Ubuntu32位 最佳答案 解决方案是在你的ubuntu机器上安装这些32位库sudodpkg--add-architecturei386sudoapt-get-qqyupdatesudoapt-get