草庐IT

fail-fast

全部标签

安卓 : Failed writing handshake bytes (-1 of 14): Broken pipe

基本上我正在尝试使用添加后退功能(MinSDK设置为11)getActionBar().setDisplayHomeAsUpEnabled(true);这是我的功能:publicclassDetailActivityextendsActionBarActivity{@OverrideprotectedvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.detail_layout);getActionBar().setDisplayHomeAsU

android - com.android.builder.internal.aapt.AaptException : Failed to crunch file PNG file

我正在尝试编译使用GooglePlay服务的程序,但出现此错误。有问题的*.png文件来自GooglePlay服务包,因此我无法更改它。如何解决这个问题?Error:com.android.builder.internal.aapt.AaptException:Failedtocrunchfilemy_app_folder\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\9.4.0\res\drawable-tvdpi-v4\common_plus_signin_btn_tex

android - 错误 :Execution failed for task ':app:processDebugGoogleServices' . 安卓

错误:任务“:app:processDebugGoogleServices”执行失败。请通过更新google-services插件的版本(有关最新版本的信息可在https://bintray.com/android/android-tools/com.google.gms.google-services/获得)或将com.google.android.gms的版本更新为9.0.2来修复版本冲突这是我遇到的错误。下面是我的gradle文件。我已经尝试了很多stackoverflow的解决方案,但没有一个适用于我的情况。applyplugin:'com.android.applicatio

github连接失败Host key verification failed.解决方案

问题描述之前一直用的gitee协同协作,然后再最近一次云计算项目中团队使用的是github进行协作,但是按照常规步骤再GitHub上配置了ssh密钥后,却依然显示连接失败,无法推送和拉取代码,克隆仓库也是报错拒绝。具体报错信息如下:OffendingRSAkeyin/c/Users/32804/.ssh/known_hosts:1RSAhostkeyforgithub.comhaschangedandyouhaverequestedstrictchecking.Hostkeyverificationfailed.fatal:Couldnotreadfromremoterepository.Pl

java - 获取 java.io.IOException : read failed, 套接字可能已关闭或在 BluetoothSocket.connect() 上超时

我正在尝试编写一个代码,该代码仅连接到我的(目前)在运行Android4.4KitKat的Nexus7上唯一配对的设备。无论我尝试了多少事情,我仍然会收到此错误。这是我尝试过的最后一个代码,它似乎在做我见过的人们报告为成功的所有事情。谁能指出我做错了什么?BluetoothManagerbluetoothManager=(BluetoothManager)getSystemService(Context.BLUETOOTH_SERVICE);BluetoothAdapteradapter=bluetoothManager.getAdapter();//BluetoothAdapter.

android - java.io.IOException : setDataSource failed when play recorded mp4 异常

我想使用AndroidMediaPlayer播放录制的mp4数据,但是当尝试播放时显示此错误:java.io.IOException:setDataSourcefailed.atandroid.media.MediaPlayer.setDataSource(MediaPlayer.java:1086)atandroid.media.MediaPlayer.setDataSource(MediaPlayer.java:1032)这是我的代码:finalImageViewplay=(ImageView)root.findViewById(R.id.voice_play);play.setO

android - NoClassDefFoundError : Failed resolution of :Ljavax/XML/stream/XMLEventFactory with Apache POI on Android

我一直在尝试使用android上的apachepoi库将excel表写入外部存储,但每次运行该应用程序时都会出现错误Failedresolutionof:Ljavax/XML/stream/XMLEventFactory我看了poi的官方文档,谷歌了,没用。我也用jdk1.8,还是报错。 最佳答案 由于直接使用ApachePOI中的库时会遇到各种问题,目前ApachePOI无法直接在Android上运行。有两个项目试图使在Android上使用ApachePOI成为可能:https://github.com/andruhon/andr

IDEA版Postman插件Restful Fast Request,细节到位,功能好用

目前SpringBoot系列框架非常流行,大多数开发都是基于前后端分离的模式进行开发,这种过程中势必会涉及到大批量的API调试,到目前为止,IntelliJIDEA是Java软件开发最多使用的开发工具,最近我在IntelliJIDEA插件市场下找到了一块非常好用的插件RestfulFastRequest,细节非常到位,说它是IDEA版的Postman也不为过,推荐给大家!什么是RestfulFastRequestRestfulFastRequest是idea版Postman。它是一个强大的restfulapi工具包插件,可以根据已有的方法帮助您快速生成url和params。RestfulFas

java - E/FirebaseInstanceId : Token retrieval failed: AUTHENTICATION_FAILED Android studio

好吧,这里有点疯狂。每次我在androidstudio中启动我的应用程序时,在处理任何代码之前都会收到此错误:E/FirebaseInstanceId:Tokenretrievalfailed:AUTHENTICATION_FAILED应用Gradle:应用插件:'com.android.application'android{compileSdkVersion27defaultConfig{applicationId"fraternityandroid.greeklife"minSdkVersion22targetSdkVersion27versionCode1versionName

c# - Visual Studio 2017 Xamarin Android 编译警告 "fakeLogOpen(/dev/log_security) failed"中断构建

我正在尝试编译一个用C#编写的Android应用程序,在Windows上使用VisualStudio2017(和Xamarin)。每当我尝试编译项目并将其部署到android模拟器,我不断收到此警告:“fakeLogOpen(/dev/log_security)failed”。没有详细说明原因。为什么我会收到此错误/警告? 最佳答案 似乎他们为下一次更新修复了它:JonathanPryorThankyouforyourfeedback!Wehavefixedtheprobleminanupcomingrelease.Thankyou