When I tested my app on Android 8.0 it's work just fine, but when I test it on Android 5.0 it keeps crashing every time I launch a new activity or I click in items of navigation drawer, I get the exception below, can you please help me, I am not getting anything from crash log telling where my application is crashing
02-18 11:16:28.934 800-1189/? E/NativeCrashListener: Exception dealing with report
android.system.ErrnoException: read failed: EAGAIN (Try again)
at libcore.io.Posix.readBytes(Native Method)
at libcore.io.Posix.read(Posix.java:147)
at libcore.io.BlockGuardOs.read(BlockGuardOs.java:230)
at android.system.Os.read(Os.java:364)
at com.android.server.am.NativeCrashListener.consumeNativeCrashData(NativeCrashListener.java:240)
at com.android.server.am.NativeCrashListener.run(NativeCrashListener.java:138)
Problem solved by removing this code from xml:
android:shadowColor="#color/text_shadow_white"
android:shadowDx="-2"
android:shadowDy="-2"
android:shadowRadius="1"
Related
I'm having trouble getting Firebase Crashlytics to work in my Android Studio project. I keep getting these runtime errors:
E/FirebaseCrashlytics: Settings request failed.
java.io.FileNotFoundException: https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/xxxxxxx:android:xxxxxxxxb/settings?instance=xxxxxxx8&build_version=2&display_version=2.0&source=1
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:255)
at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:211)
at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:30)
at com.google.firebase.crashlytics.internal.network.HttpGetRequest.execute(HttpGetRequest.java:80)
at com.google.firebase.crashlytics.internal.settings.network.DefaultSettingsSpiCall.invoke(DefaultSettingsSpiCall.java:113)
at com.google.firebase.crashlytics.internal.settings.SettingsController$1.then(SettingsController.java:199)
at com.google.firebase.crashlytics.internal.settings.SettingsController$1.then(SettingsController.java:192)
at com.google.android.gms.tasks.zzp.run(Unknown Source:2)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(ExecutorUtils.java:64)
at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(BackgroundPriorityRunnable.java:27)
at java.lang.Thread.run(Thread.java:923)
E/FirebaseCrashlytics: Error handling uncaught exception
java.util.concurrent.TimeoutException
at com.google.firebase.crashlytics.internal.common.Utils.awaitEvenIfOnMainThread(Utils.java:122)
at com.google.firebase.crashlytics.internal.common.CrashlyticsController.handleUncaughtException(CrashlyticsController.java:232)
at com.google.firebase.crashlytics.internal.common.CrashlyticsController$1.onUncaughtException(CrashlyticsController.java:155)
at com.google.firebase.crashlytics.internal.common.CrashlyticsUncaughtExceptionHandler.uncaughtException(CrashlyticsUncaughtExceptionHandler.java:54)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1073)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)
at java.lang.Thread.dispatchUncaughtException(Thread.java:2203)
I/Process: Sending signal. PID: 19658 SIG: 9
I've tried completely removing Firebase from the project and removing the project from Firebase, in other words starting from scratch, but this isn't working either. What could be going on here?
I solved this by migrating my project to a new Firestore project and replacing google-services.json in my Android Studio app folder. I then invalidated cache/restart and I was able to enable Crashlytics in Firestore by forcing an app crash per documentation instruction.
I've successfully tested a simple Gluon Mobile app on Desktop, Android devices and emulators as well as on an iOS emulator. However when launching : launchIOSDevice I get the following error:
IOException with com.sun.javafx.css.parser.CSSLexer$$Lambda$25: null
And the (reduced) stacktrace
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':launchIOSDevice'.
Caused by: java.lang.RuntimeException: IOException with com.sun.javafx.css.parser.CSSLexer$$Lambda$25: null
Caused by: java.io.EOFException
I get the exact same error when try :createIpa.
I have tried different Java and Gradle versions as well as multiple projects, but nothing seems to be portable to an iOS device.
I'm using
'org.javafxports:jfxmobile-plugin:1.3.10'
and
distributionUrl=https://services.gradle.org/distributions/gradle-2.14.1-all.zip
Has anyone encountered a similar error?
Solution was to delete the contents of the following folder
/Users/<user>/.robovm/cache/ios/arm64/release/Users/<user>/.gradle/caches/modules-2/files-2.1/org.javafxports/ios-sdk/8.60.9/<.>/unpacked/ios-sdk/rt/lib/ext/jfxrt.jar/com/sun/javafx/css/parser
and rerun :clean and :launchIOSDevice
The folder should contain up to CSSLexer$$Lambda$47.class.o for the grade task to build successfully.
I have not used Android Studio 2.3.2 for 3 or 4 days and suddenly I have got the error below when I try to launch it. Note that I installed separately Android Studio 3.0 Canary 1 one week ago but everything was ok and both versions worked without problems. I don't understand why I suddenly have a problem to launch Android Studio.
I use a MacBook.
Here is the error log given by Android Studio at launch:
Internal Error. Please report to https://code.google.com/p/android/issues
java.lang.RuntimeException: com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal error initializing 'com.android.tools.idea.AndroidInitialConfigurator'
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:203)
at com.intellij.idea.MainImpl$1.lambda$null$0(MainImpl.java:47)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:358)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal error initializing 'com.android.tools.idea.AndroidInitialConfigurator'
at com.intellij.ide.plugins.PluginManager.handleComponentError(PluginManager.java:248)
at com.intellij.openapi.components.impl.PlatformComponentManagerImpl.handleInitComponentError(PlatformComponentManagerImpl.java:43)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:536)
at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:119)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$createComponents$8(ApplicationImpl.java:429)
at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:494)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:443)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:155)
at com.intellij.openapi.application.impl.ApplicationImpl.createComponents(ApplicationImpl.java:436)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:103)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:392)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:384)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:196)
... 16 more
Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 9 column 2 path $
at com.google.gson.Gson.assertFullConsumption(Gson.java:837)
at com.google.gson.Gson.fromJson(Gson.java:827)
at com.android.sdklib.repository.targets.PlatformTarget.getLibsFromJson(PlatformTarget.java:179)
at com.android.sdklib.repository.targets.PlatformTarget.<init>(PlatformTarget.java:124)
at com.android.sdklib.repository.targets.AndroidTargetManager.getTargetMap(AndroidTargetManager.java:94)
at com.android.sdklib.repository.targets.AndroidTargetManager.getTargets(AndroidTargetManager.java:80)
at com.android.sdklib.repository.targets.AndroidTargetManager.getTargetFromHashString(AndroidTargetManager.java:154)
at org.jetbrains.android.sdk.AndroidSdkData.findTargetByHashString(AndroidSdkData.java:216)
at org.jetbrains.android.sdk.AndroidSdkAdditionalData.getBuildTarget(AndroidSdkAdditionalData.java:126)
at org.jetbrains.android.sdk.AndroidPlatform.parse(AndroidPlatform.java:90)
at org.jetbrains.android.sdk.AndroidSdkAdditionalData.getAndroidPlatform(AndroidSdkAdditionalData.java:137)
at org.jetbrains.android.sdk.AndroidPlatform.getInstance(AndroidPlatform.java:68)
at com.android.tools.idea.startup.GradleSpecificInitializer.checkAndSetSources(GradleSpecificInitializer.java:459)
at com.android.tools.idea.startup.GradleSpecificInitializer.checkAndSetAndroidSdkSources(GradleSpecificInitializer.java:449)
at com.android.tools.idea.startup.GradleSpecificInitializer.run(GradleSpecificInitializer.java:121)
at com.android.tools.idea.AndroidInitialConfigurator.activateAndroidStudioInitializerExtensions(AndroidInitialConfigurator.java:198)
at com.android.tools.idea.AndroidInitialConfigurator.<init>(AndroidInitialConfigurator.java:65)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:220)
at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248)
at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.getComponentInstance(CachingConstructorInjectionComponentAdapter.java:58)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:495)
... 28 more
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 9 column 2 path $
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1574)
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1423)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:546)
at com.google.gson.stream.JsonReader.peek(JsonReader.java:429)
at com.google.gson.Gson.assertFullConsumption(Gson.java:833)
... 54 more
Thanks for your help !
Fixed the problem.
What I have done:
close Android Studio
go to /users/your_name/library/preferences
rename the folder 'AndroidStudio2.3' to 'AndroidStudio2.3XXX' (or whatever :))
restart Android Studio
As my Android SDK was in located in an unusual folder, Android Studio asked me if I want to tell where is my SDK (choosing this option did not solve the problem) or install it at the default Android Studio location ; I chose this last option and it solved the issue !
There was a similar issue posted on Androids open source bug tracker: https://code.google.com/p/android/issues/detail?id=74458
The solution was to restart your computer. Try this and see if it works.
I had that crash too. I guess it was due to the upload of the last project. so to prevent that upload I moved it from the androidstudioprojects folder which is where all the projects are stored,and it solved the problem-the studio initialized well. but after that I brought the project back to that folder and opened it from the studio,and it was crashed again. since I have another newer version of android studio, I used it to open that project. after it finished the whole process (indexing,building etc) I closed that project and tried again to open from the first version of the studio and it succeeded.
I guess last time I worked with that project I closed it not well (through task manager) and it affected something.
In genymotion when i am running application then at time of installation of app in genymotion these exception is coming , I am pasting logcat error here:
Error parsing configurationjava.io.FileNotFoundException: /data/misc/wifi/ipconfig.txt: open failed: ENOENT (No such file or directory)
These is also expansion of same exception here ,
E/WifiStateMachine﹕ Failed to reload STA firmware java.lang.IllegalArgumentException: command '1 softap fwreload eth1 STA' failed with '501 1 SoftAP command has failed'
Now these are also same kind of thing ,
Desktop items loading interrupted:
java.lang.NullPointerException
at com.android.launcher2.LauncherModel$LoaderTask.checkItemPlacement(LauncherModel.java:1211)
at com.android.launcher2.LauncherModel$LoaderTask.loadWorkspace(LauncherModel.java:1368)
at com.android.launcher2.LauncherModel$LoaderTask.loadAndBindWorkspace(LauncherModel.java:1005)
at com.android.launcher2.LauncherModel$LoaderTask.run(LauncherModel.java:1111)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.os.HandlerThread.run(HandlerThread.java:61)
although it does not causes error but these happens ?
In your first exception it can be happens because of launching of your genymotion and it is getting configured with your wi-fi .
Now in your second exception because of some items of app loading of your genymotion .
and it is getting null at there .
These all exception will not put any problem in execution of your app and work .
My application was running perfectly fine. I closed Eclipse for few days and now that I want to run it, the emulator starts but the application doesn't run. It prompt this error saying:
The application Pico TTS (process com.svox..pico) has stopped unexpectedly. Please try again.
Apparently it is because of my TextToSpeech, but what about it? There's no error shown in the application.
In my Log Cat I receive such messages:
at dalvik.system.nativestart.main(native method)
at android.speech.tts.TextToSpeech.<init>(TextToSpeech.java:433)
at com.kelamrsan.MPActivity.onCreate(MPActivity.java:47)
Cheers.