Unable to run app on Nexus 6 - java

My app is working perfectly on Samsung Galaxy S4, but when I try to run it on Motorola Nexus 6 , I get runtime exception.
I have recently changed build variants: presentation:devDebug, data:debug
gradleVersion '2.14.1'
12-01 20:52:37.357 1808-1808/? E/ctxmgr: [PlaceFenceHelper]NearbyBuffer is null!
12-01 20:52:37.770 846-6904/? E/ActivityManager: applyOptionsLocked: Unknown animationType=0
12-01 20:26:07.847 21100-21107/? E/art: Failed sending reply to debugger: Broken pipe
12-01 20:26:08.694 21100-21100/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.dev.debug, PID: 21100
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/spongycastle/jce/provider/BouncyCastleProvider;
at com.q42.qlassified.Provider.QlassifiedCrypto.encrypt(QlassifiedCrypto.java:31)
at com.q42.qlassified.Provider.QlassifiedKeyStore.encrypt(QlassifiedKeyStore.java:177)
at com.q42.qlassified.Provider.QlassifiedKeyStore.encryptEntry(QlassifiedKeyStore.java:119)
at com.q42.qlassified.QlassifiedFactory.put(QlassifiedFactory.java:70)
at com.q42.qlassified.Qlassified.put(Qlassified.java:120)
at com..presenter.utils.QlassifiedHelper.generateEncryptionKey(QlassifiedHelper.java:38)
at com.presenter.BaseApplication.initMainRealmConfiguration(BaseApplication.java:32)
at com.presenter.AndroidApplication.onCreate(AndroidApplication.java:24)

I think you have to check the runtime permission if your device has marshmellow OS.

Related

Android crashes on start

My app was working fine, until it crashed once and can't run again only on android. IOS is working fine.
build doesn't catch any error, but when I start it on android studio I get these error log.
enter image description here
E/unknown:ReactNative: ReactInstanceManager.createReactContext: mJSIModulePackage not null
E/AndroidRuntime: FATAL EXCEPTION: mqt_js
Process: com.gamo, PID: 17096
java.lang.AssertionError: No source URL loaded, have you initialised the instance?
at com.facebook.infer.annotation.Assertions.assertNotNull(Assertions.java:35)
at com.facebook.react.modules.debug.SourceCodeModule.getTypedExportedConstants(SourceCodeModule.java:39)
at com.facebook.fbreact.specs.NativeSourceCodeSpec.getConstants(NativeSourceCodeSpec.java:35)
at com.facebook.react.bridge.JavaModuleWrapper.getConstants(JavaModuleWrapper.java:129)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
at android.os.Looper.loop(Looper.java:223)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
at java.lang.Thread.run(Thread.java:923)
I/Process: Sending signal. PID: 17096 SIG: 9
I already tried gradlew clean, cache clean, enable hermes = true

Importing Facebook SDK crash android app java.lang.UnsatisfiedLinkError

Just importing Facebook SDK crashes my android app, it was working fine but it start to crash, I comment every section uses facebook SDK it still crash
I use facebook sdk version "4.24.0"
07-05 12:50:30.309 10354-10412/andrewhossam.cuju_android E/art: No implementation found for long com.android.tools.profiler.support.network.HttpTracker$Connection.nextId() (tried Java_com_android_tools_profiler_support_network_HttpTracker_00024Connection_nextId and Java_com_android_tools_profiler_support_network_HttpTracker_00024Connection_nextId__)
--------- beginning of crash
07-05 12:50:30.310 10354-10412/andrewhossam.cuju_android E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
Process: andrewhossam.cuju_android, PID: 10354
java.lang.UnsatisfiedLinkError: No implementation found for long com.android.tools.profiler.support.network.HttpTracker$Connection.nextId() (tried Java_com_android_tools_profiler_support_network_HttpTracker_00024Connection_nextId and Java_com_android_tools_profiler_support_network_HttpTracker_00024Connection_nextId__)
at com.android.tools.profiler.support.network.HttpTracker$Connection.nextId(Native Method)
at com.android.tools.profiler.support.network.HttpTracker$Connection.<init>(HttpTracker.java:191)
at com.android.tools.profiler.support.network.HttpTracker$Connection.<init>(HttpTracker.java:186)
at com.android.tools.profiler.support.network.HttpTracker.trackConnection(HttpTracker.java:280)
at com.android.tools.profiler.support.network.httpurl.HttpsURLConnection$.<init>(HttpsURLConnection$.java:55)
at com.android.tools.profiler.support.network.httpurl.HttpURLWrapper.wrapURLConnectionHelper(HttpURLWrapper.java:40)
at com.android.tools.profiler.support.network.httpurl.HttpURLWrapper.wrapURLConnection(HttpURLWrapper.java:55)
at com.facebook.GraphRequest.createConnection(GraphRequest.java:1410)
at com.facebook.GraphRequest.toHttpConnection(GraphRequest.java:1070)
at com.facebook.GraphRequest.executeBatchAndWait(GraphRequest.java:1158)
at com.facebook.GraphRequest.executeBatchAndWait(GraphRequest.java:1134)
at com.facebook.GraphRequest.executeBatchAndWait(GraphRequest.java:1118)
at com.facebook.GraphRequest.executeAndWait(GraphRequest.java:1093)
at com.facebook.GraphRequest.executeAndWait(GraphRequest.java:987)
at com.facebook.internal.FetchedAppSettingsManager.getAppSettingsQueryResponse(FetchedAppSettingsManager.java:207)
at com.facebook.internal.FetchedAppSettingsManager.access$100(FetchedAppSettingsManager.java:47)
at com.facebook.internal.FetchedAppSettingsManager$1.run(FetchedAppSettingsManager.java:122)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
07-05 12:50:30.311 1104-1960/? E/ActivityManager: App crashed! Process: andrewhossam.cuju_android
Uncheck "Enable advanced profiling" in Run->Edit Config->profiling tab
after search for days i found it !
add this to your manifest file :
<uses-feature
android:name="android.hardware.telephony"
android:required="false" />

Sensortag20 Program Crashes connecting to bluetooth device

I'm trying to modify this project from android studio 2 but when I try to run the app from Android 4.4.2 and connect to a bluetooth device, it gives these error messages.
06-02 14:51:30.126 12669-12669/com.example.ti.ble.sensortag E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.ti.ble.sensortag, PID: 12669
java.lang.IllegalArgumentException: null is not a valid Bluetooth address
at android.bluetooth.BluetoothDevice.<init>(BluetoothDevice.java:564)
at android.bluetooth.BluetoothAdapter.getRemoteDevice(BluetoothAdapter.java:418)
at com.example.ti.ble.common.BluetoothLeService.disconnect(BluetoothLeService.java:635)
at com.example.ti.ble.sensortag.MainActivity.onConnect(MainActivity.java:320)
at com.example.ti.ble.sensortag.MainActivity.onDeviceClick(MainActivity.java:379)
at com.example.ti.ble.sensortag.ScanView$1.onItemClick(ScanView.java:205)
at android.widget.AdapterView.performItemClick(AdapterView.java:299)
at android.widget.AbsListView.performItemClick(AbsListView.java:1152)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:3014)
at android.widget.AbsListView$3.run(AbsListView.java:3865)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5341)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641)
at dalvik.system.NativeStart.main(Native Method)
The project can be found here SensorTag20 Project. How do I fix these problems?
Turns out, I just needed to restart the device everytime I reprogram it.

could not load library which is a native third-party library built for older Android (maybe 2.3.x)

I use a third/second-party native library (called libmc_eruconverter_lv2_for_android_jni.so)
and am trying to debug an fatal exception which ONLY occurred when my app runs on Android L (5.0).
10-23 12:43:03.513: E/art(2177):
dlopen("/data/app/com.ocean.web3d.lib-2/lib/arm/libmc_eruconverter_lv2_for_android_jni.so",
RTLD_LAZY) failed: dlopen failed: could not load library "libdvm.so"
needed by "libmc_eruconverter_lv2_for_android_jni.so"; caused by library
"libdvm.so" not found
10-23 12:43:03.514: D/AndroidRuntime(2177): Shutting down VM
10-23 12:43:03.514: D/AndroidRuntime(2177): --------- beginning of crash
10-23 12:43:03.515: E/AndroidRuntime(2177): FATAL EXCEPTION: main
10-23 12:43:03.515: E/AndroidRuntime(2177): Process:
com.ocean.web3d.lib, PID: 2177
10-23 12:43:03.515: E/AndroidRuntime(2177):
java.lang.UnsatisfiedLinkError: dlopen failed: could not load library
"libdvm.so" needed by "libmc_eruconverter_lv2_for_android_jni.so"; caused
by library "libdvm.so" not found
10-23 12:43:03.515: E/AndroidRuntime(2177): at
java.lang.Runtime.loadLibrary(Runtime.java:371)
10-23 12:43:03.515: E/AndroidRuntime(2177): at
java.lang.System.loadLibrary(System.java:989)
10-23 12:43:03.515: E/AndroidRuntime(2177): at
com.ocean.web3d.lib.oceanRenderer.<clinit>(oceanRenderer.java:18)
In order to fix this problem,
I have tried to renew my development environment from:
ATD 23.02 (Eclipse 4.2.2) with NDK r8c
to:
ATD 23.04 (Eclipse JUNO) with NDK r10c
(FYI, I have got a link warning, so I modified my Android.mk file and the
warning is fixed not now by referring to this thread
WARNING: .../Android.mk: non-system libraries in linker flags
)
Also, in Application.mk, I have set my APP_PLATFORM to 21
However, I still have got the fatal exception.
I have almost tried what I can try...
Could anyone kindly help or give me some ideas?
Thank you very much in advance!

VM aborting with thread 1174 in Android

This is log Trace
03-07 15:08:05.084: E/dalvikvm(1174): VM aborting
03-07 15:08:05.093: A/libc(1174): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 1174 (com.company.gps)
My application was working fine with Emulator on API 16 but when I upgraded emulator device to API 17, I started to get this error but this error doesn't give any idea about the problem.
Can anybody tell me the problem here. I am making a GPS application which reads current co-ordinates of user and shows some near by places.

Categories

Resources