when open camera written camera suddenly stopped and error massage is:java.lang.runtime exeption:start preview failed at android.hardware.camera.android.camera manager i mpi $ camera handler.handle message(android camera manager imp. java:261) other 3 raws include handler java 101 looper java 136 and java 61 mine is gt-19100 runing android 4.4.4 base band version 19100xxlq6
Related
-1
down vote
favorite
1
I have ubuntu14.04(with win7 dual boot) and latest android studio1.5.1 with oracle jdk1.8.0_73 version installed.
I have spent my last seven days in order to resolve this issue. Whenever I starts my android studio(and create any new or existing project), my AndroidStudio(AS) gets stuck at executing task [app:generateDebugSources, app:generateDebugAndroidTestSources]. I left my AS to run for long time still after 2 hours with connected internet, the issue still persists.
I have gone through all the available internet solutions but issue remains the same. So far what I have tried.
Reinstalled everything including AS and sdk
Deleted .android, .gradle, .AndroidStudio1.5 from my ubuntu/linux mint
Tried AndroidStudio on Ubuntu14.04(on gnome and unity both)/Linux Mint17.3(Cinnamon)
Tried this solution many internet solutions says that this library is missing. I installed it including many other libraries one by one But in my case nothing seems to work
My system Configuration-4GB Ram with i3 processor.
Had this kinda problems with Oracle JDK 8/9.
Try OpenJDK 8
My current dev config (Ubuntu 1504):
Android Studio 2.0 Preview 9
Build #AI-143.2571730, built on January 29, 2016
JRE: 1.8.0_45-internal-b14 amd64
JVM: OpenJDK 64-Bit Server VM
And if you don't like font rendering in AndroidStudio running on OpenJDK, try fontfix patch
https://github.com/achaphiv/ppa-fonts/blob/master/openjdk-fontfix/README.md
Hello,I recently downloaded the android studio.I installed the application along with the required JDK (Version 1.8).After installing both the applications , I tried to open Android Studio but unfortunately the application wasn't opening.As soon as I clicked it Only the "Android Studio" appeared and that it was powered by IntelliJ Platform.Then I waited for quite a long time for the application to load but the interface didn't open.I really need help to open the IDE.
Try downloading the latest version of android studio and running it, i.e. android developer studio v2.2 preview 6
Hi, how can i compile apk in android studio when i get this error:
Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
This happened when i try to use Appodeal SDK. They have 3 versions, normal, multidex and multidex over 64k methods. I tried all of them, same error. Version with 64k methods works fine, but when i tried to use image button and android studio download some libraries to use it, then this problem appear on this only working SDK too, now i can't use it.
Exist any fix for it, or any way how to disable multidex?
Hello, I've enabled Camera API2 and tried to take photos with longer exposure using third party apps (FreeDcam, Footej Camera, Open Camera), yes, the stock camera can take longer exposure photos but only in jpg format and only at certain intervals (there is no 12s for example). On these other camera apps the option to take longer exposure is there, up to 32s, but selecting more than 5 seconds does nothing, the camera throws error (footej) or keeps "taking the photo" forever, tried on stock ROM and Lineage 17.0. On logcat found something related to SOF Freeze:
Code:
740 14907 E mm-camera: <MCT ><ERROR> 98: mct_bus_sof_thread_run: FATAL Session 4: SOF Freeze! Sending error message
740 14907 I mm-camera: <MCT >< INFO> 133: mct_bus_sof_thread_run: Sending HW_ERROR from MCT on session =4
740 14853 E mm-camera: <MCT ><ERROR> 817: mct_controller_send_cb: FATAL: Sending HW_Error
740 14874 E QCamera : <HAL><ERROR> camEvtHandle: 1206: Fatal, camera daemon died
Searching on internet found various threads about modified libraries to enable longer exposure and various hints: this was the first, and this other says something related to SOF timeout, but all shared the modified libraries but no the original to give an idea of what they modified and I'm totally ignorant to figure myself where to search and/or modify.
There is a ROM with support for exposure longer than 5 secs using API2? I would use it very very rarely, but if it already exists I save the time in trying to do it myself (although I doubt I can achieve it )
Thanks and sorry for my english.
Well, I've tried to see in the disassembled code of the various modded lib (particularly on the libmmcamera2_mct.so) but that's far beyond my knowledge .
But I've found a sort of workaround: FreedCam can take dng photos with longer exposure time (...,2,4,8,16 and 32 seconds) but only if API2 is disabled (no, the option of camera1 in the menu of FreedCam doesn't work if API2 is enabled, only allows jpg but no raw). Isn't necessary to disable the Camera API2 systemwide, you only needed to add the package id of FreeDcam to the camera.hal1.packagelist prop, but the property has a character limit and thus is needed to remove one of the included package ids and add FreeDcam, this is the original on /vendor/build.prop file:
Code:
camera.hal1.packagelist=com.whatsapp,com.android.camera,com.android.camera2,com.instagram.android
vendor.camera.hal1.packagelist=com.whatsapp,com.android.camera,com.android.camera2,com.instagram.android
I've removed Instagram package id because I never use it, that can be done with Magisk and its resetprop utility:
Code:
resetprop camera.hal1.packagelist com.whatsapp,com.android.camera,com.android.camera2,troop.com.freedcam
resetprop vendor.camera.hal1.packagelist com.whatsapp,com.android.camera,com.android.camera2,troop.com.freedcam
Or with a Magisk module or editing the build.prop directly.
And now FreeDcam has the option of take raw images on API1 and also can use API2 :victory:
- Obviously this means that you can take raw photos even on stock with locked bootloader using FreeDcam and Camera API1.
- To get the option to take DNG files on FreeDcam (only has RAW) is needed a dng profile. I've attached one, put on /sdcard/DCIM/FreeDcam/config/ folder.
- I've done this on AICP 14.0 (Android 9.0) and don't know if the prop camera.hal1.packagelist exists on newer versions of Android as i've read that is deprecated on Android Q.
- Still a modded lib or official support for exposure longer than 5 secs would be better, but worse is nothing.
Thanks to @pexxie for the idea in his answer.
Hello all,
Wondering if I'm the only one with this issue. I'm trying to generate a signed APK using Android Studio (Build->Generate Signed Bundle / APK...).
However, during the process, an exception is thrown:
Code:
2022-07-19 14:57:49,526 [ 337069] ERROR - intellij.openapi.progress.Task - sun/misc/BASE64Encoder
java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder
This is with the JRE that ships with Android Studio.
I dug into this a bit and found in places that this is a problem caused by running Java 11, since this class was deprecated in Java 9. However, when I run Android Studio with Java 8, it won't load since it complains about needing a later version of Java.
Does anybody else have this problem? Any suggested work-around/hacks for this?
Incidentally - I'm running on Ubuntu, and tried it with the OpenJDK version 8. Haven't tried with the Oracle version of Java yet.
Thanks!