草庐IT

Failure-while

全部标签

android - : Unable to instantiate application and ClassNotFound while sharing apk

当我从androidstudio运行应用程序时,它在模拟器和设备中运行良好。但是当我分享apk的调试/发布版本时,当用户点击应用程序图标时它崩溃了。根据我在日志中看到的错误03-1109:16:12.65425384-25384/com.microtechnicianappE/AndroidRuntime:FATALEXCEPTION:mainProcess:com.microtechnicianapp,PID:25384java.lang.RuntimeException:Unabletoinstantiateapplicationcom.microtechnicianapp.App

java - 获取意外的 JDWP 错误 : 103 while trying to upload an image using retrofit to an api server android?

我在尝试使用改造多部分在api服务器上上传图像时收到以下103错误消息,api收到apitoken“_method”:“PUT”和图像url作为参数,在响应时收到完整的JSON但带有先前或默认的图像链接,当前选择的图像不会上传,其他一切都是可选的,任何帮助将不胜感激,下面列出了代码谢谢。此外,主要方法是POST,但“_method”:“PUT”参数可让您上传图像,如果没有_method,它将成为POST消息,除此之外的所有其他参数都成为强制性参数,请检查图像。com.sun.jdi.InternalException:UnexpectedJDWPError:103接口(interfac

android.accounts.AuthenticatorException : bind failure

我收到以下异常;我知道这没什么好继续的,但似乎几乎没有可用的文档。可以这么说,我已经尝试了所有关于实现我自己的Authenticator的示例。我找到了建议的答案here修复我的list文件(声明服务)。已经这样做了,问题仍然存在。我最初的解决方案是基于thisexample:write-your-own-android-authenticatorW/System.err﹕android.accounts.AuthenticatorException:bindfailureW/System.err﹕atAndroid.accounts.AccountManager.convertErr

java - 安装错误 : Unknown failure Android App

我刚刚使用EclipseIDE安装了AndroidADT包。我已经创建了一个Android手机模拟器,我正在尝试在它上面安装和运行我的第一个应用程序。这是我在控制台日志中看到的内容AndroidLaunch!adbisrunningnormally.Performingcom.example.outlast.MainActivity11activitylaunchAutomaticTargetMode:Unabletodetectdevicecompatibility.Pleaseselectatargetdevice.UploadingOutlast.apkontodevice'em

android - YouTube API "An error occurred while initializing the YouTube player."

我正在使用YoutubeAPI在我的应用程序上使用简单的playerView。我按照API的指示做了,但我不断收到“应用程序已停止”消息。我真的不知道确切的英语短语,因为我使用的是韩国电话。希望这是正确的英语短语。我将Youtubeandroidplayerapi.jar放在库中并构建了路径,并在库中包含了不必要的组件。这是Menu.java。packagecom.hobak.sci;importcom.hobak.sci.DeveloperKey;importcom.hobak.sci.R;importcom.google.android.youtube.player.YouTube

android - 获取 UI 层次结构时出错 Error while obtaining UI hierarchy XML file : com. android.ddmlib.SyncException: Remote object doesn't exist

我正在使用adb测试我的应用程序,但是当我执行“为uiautomator转储View层次结构”时出现此错误:ErrorobtainingUIhierarchyErrorwhileobtainingUIhierarchyXMLfile:com.android.ddmlib.SyncException:Remoteobjectdoesn'texist!我的adb版本是1.0.36,我的android版本是6.0.1。只有当界面中有动态元素在运动时才会出现此错误。提前致谢。 最佳答案 最好的方法是杀死adb服务器并重新启动它。sudoad

android - NullPointerException 在 TextView.checkForRelayout() while setText()

我正在尝试实现ViewHolder模式以提高在map上的Canvas上绘制时的性能。我需要为我的标记创建一些标签。在draw()中处理数据时调用此方法//nowwecreatelabelviewandconvertitintobitmapprivateBitmapcreateLabelBitmap(GisLaborHistoryObjectobject,HistoryPointpoint){//createviewfromxmlif(vh==null){vh=newViewHolder();vh.view=inflater.inflate(R.layout.map_gis_histor

android - 我在 Android 中得到 "OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack available"

直到昨天,我的应用程序运行良好,但我所做的是,由于某些原因,我不得不在AndroidStudio中打开具有不同工作空间的同一个应用程序。从那时起,当我尝试运行该应用程序时,我遇到了以下异常,所以我删除了新创建的工作节奏,但我仍然遇到以下异常。ThrowingOutOfMemoryError"Failedtoallocatea170byteallocationwith74freebytesand74BuntilOOM"(recursivecase)"main"prio=5tid=1Runnable|group="main"sCount=0dsCount=0obj=0x74430970se

android - 没有这样的属性 : sonatypeRepo for class in android studio while importing project

我已经从以下链接下载了图像裁剪器示例https://github.com/edmodo/cropper当我尝试在androidstudio中导入它时出现以下错误。这是错误,我对此很陌生,所以不知道如何解决。已尝试将项目导入为gradle但同样的错误内部大师buildscript{repositories{mavenCentral()}dependencies{//Plug-inreleasenotes:http://tools.android.com/tech-docs/new-build-systemclasspath'com.android.tools.build:gradle:0

android - java.lang.IllegalStateException : Failure saving state: active has cleared index in fragment 错误

首先,我的应用具有如下结构:SpashActivity->MainActivity->switchingbetweenmanyfragments我的应用程序使用SlideMenu在fragment之间切换。我必须使用attach而不是replace来保持fragment状态。它看起来像:publicvoidswitchContent(intindex,StringfragmentTag){FragmentManagerfragmentManager=getSupportFragmentManager();FragmentTransactiontransaction=fragmentMa