草庐IT

poppler-utils

全部标签

android - java.lang.NullPointerException : Attempt to invoke interface method 'java.util.Iterator java.lang.Iterable.iterator()' when starting a notification

我注意到我的一些用户遇到了这个异常。我不知道如何重现它,我只有关于Crashlytics的报告。似乎深入谷歌的代码。在使用此代码的数千人中,只有39人出现异常。知道可能出了什么问题吗?FatalException:java.lang.NullPointerException:Attempttoinvokeinterfacemethod'java.util.Iteratorjava.lang.Iterable.iterator()'onanullobjectreferenceatandroid.app.ApplicationPackageManager.getUserIfProfile(

android.util.AndroidException : INSTRUMENTATION_FAILED:

我有一个简单的android应用程序,我正在使用我的手机对其进行测试。所以,有两种方法可以做到这一点:使用eclipse使用CLI问题:当我使用Eclipse运行单元测试用例时,它会在运行时在我的手机上安装应用程序并运行junittest,然后如果我在CLI上使用命令:adb-dshellaminstrument-wcom.abc.xyz.test/android.test.InstrumentationTestRunner,它运行良好。但是,如果我直接在CLI中运行上述命令而没有先在Eclipse中运行单元测试用例,则会出现错误:android.util.AndroidExcepti

android - 由: java. lang.NoSuchMethodException : <init> [class android. content.Context,接口(interface)android.util.AttributeSet引起]

我在运行应用程序时收到此错误。错误:Causedby:java.lang.NoSuchMethodException:[classandroid.content.Context,interfaceandroid.util.AttributeSet]atjava.lang.Class.getConstructorOrMethod(Class.java:472)atjava.lang.Class.getConstructor(Class.java:446)atandroid.view.LayoutInflater.createView(LayoutInflater.java:574)ata

android - 如何在 Android 上配置 java.util.logging?

我想在Android上使用java.util.logging。我想用logging.properties配置日志系统。但是我怎样才能告诉Android使用特定的配置文件呢?例如,我将logging.properties放在应用程序的类路径根目录中。Android如何知道logging.properties的位置。谢谢 最佳答案 现在这是我的一个项目的常见问题解答,希望更多人会在这里找到它:java.util.logging在Android上运行良好。请不要在您的代码中使用任何其他内容,日志框架就像Java世界中的害虫。Android

android - Android 动画中的 java.util.ConcurrentModificationException

我想念在Android中同步代码的概念。场景屏幕上总是绘制3个项目。每个图像都存储在一个ArrayList(lstGraphics)中。为此,我使用了SurfaceView。一旦用户点击一张图片,该图片的市场就会被移除,并会添加一个新的市场。代码示例:动画隐藏线程...@Overridepublicvoidrun(){Canvasc;while(run){c=null;try{c=panel.getHolder().lockCanvas(null);synchronized(panel.getHolder()){panel.updatePhysics();panel.manageAni

android - 摘要 : Take a picture utilizing Camera Intent and display the photo with correct orientation (works on hopefully all devices)

这似乎是世界上最简单的事情:使用默认的相机Activity在您的Android应用中拍照。但是,StackOverflow和Web上的几篇文章中涵盖了许多陷阱,例如,NullIntent被传回、图片的方向不正确或OutOfMemoryErrors。我正在寻找一种解决方案,让我能够通过相机Intent启动相机Activity,检索照片的Uri,然后检索照片的正确方向。此外,我想尽可能避免特定于设备配置(制造商、型号、操作系统版本)的实现。所以我想知道:实现这一目标的最佳方法是什么? 最佳答案 更新:2014年1月2日:我非常努力地避免

android - 构建失败并显示 'Program type already present: android.arch.core.util.Function'

更新我的Firebase和Play服务依赖项以及Play服务插件后,我的项目无法构建。我已经尝试了多次Clean-Rebuilds,并且我的应用程序启用了MultiDex。恢复到我原来的依赖版本也不是一个选项,因为我为云函数添加了一个依赖,它的最新版本与我的其他firebase依赖不兼容。我可以在Android问题下看到以下内容Programtypealreadypresent:android.arch.core.util.FunctionMessage{kind=ERROR,text=Programtypealreadypresent:android.arch.core.util.F

Android Studio 无法解析 : support-core-utils

将支持库版本升级到27.1.1后,当我同步项目时遇到以下错误:Failedtoresolve:support-core-utils有什么想法吗?这是我的项目级构建文件:buildscript{repositories{google()jcenter()}dependencies{classpath'com.android.tools.build:gradle:3.1.0'classpath'com.google.gms:google-services:3.1.0'}}allprojects{repositories{google()jcenter()maven{url"https://

android.util.AndroidRuntimeException : You cannot combine swipe dismissal and the action bar

我是android编程新手,并启动了一个示例helloworld程序,但遇到以下错误:07-0513:52:20.830:W/dalvikvm(898):threadid=1:threadexitingwithuncaughtexception(group=0xb2ac4d70)07-0513:52:20.850:E/AndroidRuntime(898):FATALEXCEPTION:main07-0513:52:20.850:E/AndroidRuntime(898):Process:com.example.helloandroid,PID:89807-0513:52:20.850

android - 包 android.support.v4.util 不存在

自上次更新a​​ndroid支持库以来,我在导入LruCache时遇到了问题。Eclipse,现在甚至androidstudio,一直说android.support.v4.util包不存在。我正在使用actionbarsherlock,它包含androidsupportv4并且没有显示错误。在最后一次SDK更新之前,我的应用程序运行良好。发生了什么变化?我该如何解决这个问题?这是显示的错误:java:/Users/amit/App/src/com/app/EMCache.java:5:packageandroid.support.v4.utildoesnotexistjava:/Us