我正在实现fb的反应本机应用程序。我做了来自的所有更改,并在安卓设备上运行。应用程序崩溃在Facebook登录按钮点击,这些是日志。
05-23 10:42:20.559 7063-7063/com.fbsample E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.fbsample, PID: 7063
Cannot pass a read permission (email) to a request for publish authorization
at com.facebook.login.Log
我使用AlarmManager唤醒设备并运行一些任务。这些都是在IntentService内部完成的,所以在一个与主线程分离的线程上。工作完成后,我想祝酒。但是,我收到了这个日志警告,没有显示祝酒词:
W/MessageQueue﹕ Handler (android.os.Handler) {b12716d0} sending message to a Handler on a dead thread
java.lang.RuntimeException: Handler (android.os.Handler) {b12716d0} sending message to a Hand
我正在尝试使用Google Play游戏服务在游戏中添加排行榜。
在我显示排行榜和提交分数扩展屏幕的类中,我创建了扩展BaseGameActivity的屏幕,这是使用谷歌Play游戏服务所必需的。
当我启动app的时候,我得到了这个错误:
java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at android.os.Handler.<init>(Handler.java:197)
我有一个String的ArrayList,它经常被一个非UI线程更改(添加和删除行)。在UI中,我希望在一个简单的ArrayList中显示该TextView的当前内容。
在由TextView (“\n”)为joinToString编写文本时,我立即收到了一个ConcurrentModificationException,这并不令人惊讶。
因此,为了避免这种情况,在将ArrayList连接到字符串之前,我克隆了它:
val textLines = globalTextLineArray.clone() as ArrayList<String>
myTextView.text = te
当我的应用程序第一次启动时,我正在使用安卓库添加一个欢迎屏幕。
现在,在4.0+ (可能还有3.0,但是我还没有一个设备来测试它)上,它工作得很好,但是在姜饼上,这个应用程序崩溃了,出现了下面的错误。
09-10 15:30:31.182 1650-1650/net.rymate.notes E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: insertShowcaseViewWithType cannot be used when the theme has no ActionBar
当我穿过ConcurrentModificationException时,我得到了ArrayList。我所做的:
1. activity has a ArrayList<Callable>
2. add Callable to ArrayList when AsyncTask.onPostExecute
3. traverse the ArrayList to call the callable in onResumeFragments
异常是如何触发的:我快速按下AsyncTask.execute()键,当我的应用程序返回到前台时,异常就发生了。
让我困惑的是:如果Asyn
我工作的公司有一个应用程序,我已经做了很长一段时间了,并且在Android4.4上运行得非常好。在我们的Nexus 5得到棒棒糖更新后,突然所有的onClicks都不再工作了。我曾尝试在其他设备上运行我们的应用程序,在vm中也出现了同样的问题。由于专有代码的原因,我只能展示这么多,但这不应该是个问题。
onClick的第一个活动是LoginActivity,它扩展活动,不接触片段或对话框(这是所有其他类似问题的结果)。下面的示例来自一个应该允许您选择服务器的按钮:
public class LoginActivity extends Activity{
...
public void
每次我从后台堆栈中删除YouTubePlayerSupportFragment时,我都会在日志中得到以下错误:
06-12 02:08:46.937 8805-8805/ D/GA_DEBUG: Event_category:VideoContent-Portrait-This artist uses unique methods to paint his pottery action:play label:youtube {&el=youtube, &ec=VideoContent-Portrait-This artist uses unique methods to pai
我的应用程序在一些设备上崩溃了,但在其他设备上运行良好。我的应用程序的一个用户向我发送了这个异常: java.lang.RuntimeException: Canvas: trying to draw too large(132710400bytes) bitmap.
at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:260)
at android.graphics.Canvas.drawBitmap(Canvas.java:1415)
at a
以下是android上的指南:
不知道把"credentials.json“文件放在哪里。尝试了很多地方: App,Raw,Resources,.,都没有用。
这是崩溃的线路:
InputStream in = GoogleAPISample.class.getResourceAsStream("/credentials.json");
if (in == null) {
throw new FileNotFoundException("Resource not found: " + "/credentials.json");
}