After actualization android studio to version 3.1 I have problem with my project.
When i click on edit text activity closing and throw exception.
I have no idea why is this happening, pls help.
E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!
E/AndroidRuntime: Error reporting crash
android.os.TransactionTooLargeException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:496)
at android.app.ActivityManagerProxy.handleApplicationCrash(ActivityManagerNative.java:4180)
at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:144)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
This is a bug in new android studio version(3.1), hope they fix it ASAP.
If you run same app without changing anything in previous version like 3.0 this app will work fine.
For now disabling it (Edit configuration settings -> Profiling -> Enable advanced profiling) prevents EditText from crashing
Related
I'm a beginner in Android studio, and I beg pardon for and writing errors. While trying an ecommerce app to install, I'm getting this error, however I tried searching web for the same, yet could not find it. Can you please help me what this error is about? Earlier this project used Session manager to authenticate, I tried to use Firebase when I faced this issue. Please post any related link.
10/01 13:04:25: Launching 'app' on Micromax Micromax Q391.
Installation did not succeed.
The application could not be installed.
List of apks: [0]
'D:\SearchLocally\SerchLocally\app\build\outputs\apk\debug\app-debug.apk'
Installation failed due to: ''pm install-create -r -t -S 9779378'
returns error 'Unknown failure: java.lang.UnsatisfiedLinkError: No
implementation found for java.lang.String
android.os.SystemProperties.native_get(java.lang.String) (tried
Java_android_os_SystemProperties_native_1get and
Java_android_os_SystemProperties_native_1get__Ljava_lang_String_2) at
android.os.SystemProperties.native_get(Native Method) at
android.os.SystemProperties.get(SystemProperties.java:52) at
android.os.Environment.getCanonicalPathOrNull(Environment.java:832) at
android.os.Environment.(Environment.java:78) at
android.os.Environment.getLegacyExternalStorageDirectory(Environment.java:419)
at android.os.Debug.(Debug.java:96) at
android.ddm.DdmHandleHello.handleHELO(DdmHandleHello.java:164) at
android.ddm.DdmHandleHello.handleChunk(DdmHandleHello.java:91) at
org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)
java.lang.UnsatisfiedLinkError: android.os.Debug at
android.ddm.DdmHandleHello.handleFEAT(DdmHandleHello.java:176) at
android.ddm.DdmHandleHello.handleChunk(DdmHandleHello.java:93) at
org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)
java.lang.UnsatisfiedLinkError: android.os.Debug at
android.ddm.DdmHandleProfiling.handleMPRQ(DdmHandleProfiling.java:187)
at
android.ddm.DdmHandleProfiling.handleChunk(DdmHandleProfiling.java:88)
at
org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)''
Retry
Disabling MIUI optimization from developed options will work:
Settings - Developer options - MIUI optimization
Disable it and it will ask to reboot the device, after that the app can be installed
When I change the code and try to lauch the app sometimes this happends:
Installing ...
Success
Launching application: ...
DEVICE SHELL COMMAND: ...
java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String android.os.SystemProperties.native_get(java.lang.String) (tried Java_android_os_SystemProperties_native_1get and Java_android_os_SystemProperties_native_1get__Ljava_lang_String_2)
at android.os.SystemProperties.native_get(Native Method)
at android.os.SystemProperties.get(SystemProperties.java:52)
at com.htc.customization.HtcCustomizationManager.<init>(HtcCustomizationManager.java:65)
at com.htc.customization.HtcCustomizationManager.<clinit>(HtcCustomizationManager.java:60)
at android.os.Environment$UserEnvironment.getCustomizationReader(Environment.java:523)
at android.os.Environment$UserEnvironment.isDynamicSwitchSupported(Environment.java:534)
at android.os.Environment$UserEnvironment.<init>(Environment.java:222)
at android.os.Environment.initForCurrentUser(Environment.java:142)
at android.os.Environment.<clinit>(Environment.java:136)
at android.os.Environment.getLegacyExternalStorageDirectory(Environment.java:726)
at android.os.Debug.<clinit>(Debug.java:96)
at android.ddm.DdmHandleHello.handleHELO(DdmHandleHello.java:164)
at android.ddm.DdmHandleHello.handleChunk(DdmHandleHello.java:91)
at org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)
java.lang.UnsatisfiedLinkError: android.os.Debug
at android.ddm.DdmHandleHello.handleFEAT(DdmHandleHello.java:176)
at android.ddm.DdmHandleHello.handleChunk(DdmHandleHello.java:93)
at org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)
java.lang.UnsatisfiedLinkError: android.os.Debug
at android.ddm.DdmHandleProfiling.handleMPRQ(DdmHandleProfiling.java:215)
at android.ddm.DdmHandleProfiling.handleChunk(DdmHandleProfiling.java:106)
at org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)
Aborted
And the app does not lauch unless I rebuild the solution - then it launches fine
This is not that serious but very annoying as it happens once every 3-4 builds
What is wrong?
You probably have and HTC phone (M8 I'd guess) with HTC Sense. There is a bug in their code which prevents you from installing the app sometimes. Here's relevant question and answer from HTCdev FAQ:
Why does my debug APK sometimes fail to install or run on my device
and how to recover?
HTC devices with Lollipop 5.0.0 or 5.0.1 may experience this issue and
we suggest retrying the installation step for workaround. HTC will
prepare the solution to address the issue on Lollipop MR1.
So, nothing you can do but to wait for Android update. Since HTC backed off from pushing Lollipop MR1, you will have to wait for Marshmallow update.
I'm using ACRA lib for getting crashes of my app.
It work fine (I receive crash-reports on my server with stackTrace and logCat info). But in my IDE (Eclipse) in logCat I see only this line, when I throw exception:
E/ACRA(18776): ACRA caught a IndexOutOfBoundsException exception for com.example.myapp. Building report.
So I able to read stackTrace of catched error only on my server... And, of course, if I disable ACRA initialization in my app I can see stackTrace of throwing error.
Also I read this, but it do not help me, as I already have "verbose" filter in logCat in my IDE (Eclipse).
UPD_0:
As I understand, this issue caused by Android version >=5 (Lolipop). I test on Nesus 4 (ver 5.1) and on LG g3s, ver.5.0.2. On thses devices there are no stackTrace of catched error in IDE's logCat. On devices with Android <5 (Lolipop) everything is all write and I can see error detailes in logCat of Eclipse.
UPD_1:
If read logs from cmd (adb logcat) everithing is all write. So there is problem with Eclipse...
If it's showing in the adb logcat, then it's a problem with either Eclipse or with your Eclipse config.
I have installed eclipse luna java EE for android development and have installed all the plugins and most of the software available. It was working fine untill today when i got the error while trying to open the activity_main.xml - "write access not allowed during rendering".
also this is the content of the exception stack trace :
Exception raised during rendering: com/android/layoutlib/bridge/impl/RenderSessionImpl
java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
at org.eclipse.m2e.logback.configuration.LogHelper.logJavaProperties(LogHelper.java:26)
at org.eclipse.m2e.logback.configuration.LogPlugin.loadConfiguration(LogPlugin.java:189)
at org.eclipse.m2e.logback.configuration.LogPlugin.configureLogback(LogPlugin.java:144)
at org.eclipse.m2e.logback.configuration.LogPlugin.access$2(LogPlugin.java:107)
at org.eclipse.m2e.logback.configuration.LogPlugin$1.run(LogPlugin.java:62)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
also it is worth mentioning that prior to this error i got a blue screen error in windows 8.1, which was "kernel security check failure". after that i did a memory check and found no problem. i have also installed the Genymotion emulator for android and have VT enabled in bios.
could you help me with this? thank you.
Finally i had to reinstall eclipse. The better way is to install each version of eclipse for the specific need and not to install a lot of unnecessary plugins. This according to me is the right way to use Eclipse.
If anyone has a better solution i would be happy to know it.
please help me. my Android application is an Alarm application that play on time in many Android devices, but my code has been error when played in some devices like Huawei Honor C3. the error is:
09-26 18:17:19.119: E/linker(23841): load_library(linker.cpp:759): library "libmaliinstr.so" not found
09-26 18:17:19.121: E/(23841): appName=com.behroid.intelligentalarm, acAppName=com.android.cts.openglperf
09-26 18:17:19.121: E/(23841): 0
09-26 18:17:19.121: E/(23841): appName=com.behroid.intelligentalarm, acAppName=com.android.browser
please give me some solution...
I guess some of the devices have missing library files. The same happened to me with opencl.so.
In that particular case I found the opencl.so file on the device and had to do a symlink opencl.so.1 to that particular apps appdata.(In the appdata folder in the root directory).