native

Android 8 native crash at native library

若如初见. 提交于 2021-02-19 02:34:26
问题 Since the rollout of Android 8 Oreo, our app has been consistently crashing in different places. All the play store crash reports show native crashes. The most frequently occuring one seems to be at native library. The most frequent device that crashes is the Google Pixel and Pixel XL have also shown a few. I ll post the crash log below. I m struggling to find what causes the crash. Any help is appreciated. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** Build fingerprint:

How to include versioned *.so file into apk using Gradle?

旧街凉风 提交于 2021-02-18 23:45:50
问题 I trying to build android application with some precompiled native libraries: liba.so and libb.so.1.2.3 Libraries are placed into jniLibs subdirectory. After building APK file, only liba.so included into it, but not libb.so.1.2.3 . Result is predictable. Application crashes at start. What to do with build scripts to include all files from jniLibs into APK? 回答1: Unfortunately I don't develop for Android anymore, so I can't test this, but I know Gradle and this might work for you. Looking at

hibernate bug:ArrayIndexOutOfBoundsException on...

孤街浪徒 提交于 2021-02-17 02:01:13
昨天给程序加上了2级缓存,今天打开查询统计页面,就报错: ava.lang.ArrayIndexOutOfBoundsException: 0 at org.hibernate.type.TypeHelper.disassemble(TypeHelper.java:146) at org.hibernate.cache.StandardQueryCache.put(StandardQueryCache.java:106) at org.hibernate.loader.Loader.putResultInQueryCache(Loader.java:2434) at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2321) 才开始以为是java 版本换了的原因,最后直接搜索错误找到了这样个bug: ArrayIndexOutOfBoundsException on enabling cache for a Native SQL query 高版本的已经修订了这个错误,但换hibernate 版本肯定又一堆问题,所以在使用native sql query 的时候加上: q.setCacheable(false); 这样 就OK 了,2级缓存 语句缓存同意还是开启的,本地sql 查询禁用2级查询缓存就可以了 来源

How to use .so in a second project in Android?

喜你入骨 提交于 2021-02-08 10:30:34
问题 I am doing an app in Android which uses native code with JNI and I have a question for you. I built some code in c++ to create .so library. then i use this .so in my project and in my Nexus 5 works fine but when I try in other devices app crashes. I did a lot of test and fail is caused by use this .so in my project, but i don't know because in nexus 5 is Ok and in other devices no. This is my Android.mk: LOCAL_PATH := $(call my-dir) # Create `DSP-prebuilt` local prebuilt library from `DSP.so`

How to use .so in a second project in Android?

依然范特西╮ 提交于 2021-02-08 10:30:14
问题 I am doing an app in Android which uses native code with JNI and I have a question for you. I built some code in c++ to create .so library. then i use this .so in my project and in my Nexus 5 works fine but when I try in other devices app crashes. I did a lot of test and fail is caused by use this .so in my project, but i don't know because in nexus 5 is Ok and in other devices no. This is my Android.mk: LOCAL_PATH := $(call my-dir) # Create `DSP-prebuilt` local prebuilt library from `DSP.so`

add ionic framework to an existing android studio app

余生长醉 提交于 2021-02-07 20:36:15
问题 I'm developing a project with android studio for a ODROID XU4 board. Because of the nature of the project I'm using android studio to make a native app in order to use some of the Harware features of the board as Ethernet, GPIO,... and because there is no intention of developing this for any other platform. The problem now is that the customer wants a nice looking ionic interface. I've been testing most of the approaches I found in google, ionic forums, stack overflow and many others sites

add ionic framework to an existing android studio app

陌路散爱 提交于 2021-02-07 20:35:07
问题 I'm developing a project with android studio for a ODROID XU4 board. Because of the nature of the project I'm using android studio to make a native app in order to use some of the Harware features of the board as Ethernet, GPIO,... and because there is no intention of developing this for any other platform. The problem now is that the customer wants a nice looking ionic interface. I've been testing most of the approaches I found in google, ionic forums, stack overflow and many others sites

native crashes for android 8.0 devices tgkill

我的未来我决定 提交于 2021-02-07 19:22:02
问题 I am getting native crashes for android 8.0 devices.The crashes only occur on Devices running Android 8+. I found a lot native crash in "Android Vitals - ANRs & crashes". I can not reproduce these issue. Devices (all with Android 8.0): Galaxy S7 edge (hero2lte) Galaxy S7 (herolte) Galaxy S8 (dreamlte) Galaxy A5(2017) (a5y17lte) Galaxy Note8 (greatlte) ### Crash log ### #00 pc 000000000004b3ac /system/lib/libc.so (tgkill+12) #01 pc 000000000001a473 /system/lib/libc.so (abort+54) #02 pc

native crashes for android 8.0 devices tgkill

我只是一个虾纸丫 提交于 2021-02-07 19:20:16
问题 I am getting native crashes for android 8.0 devices.The crashes only occur on Devices running Android 8+. I found a lot native crash in "Android Vitals - ANRs & crashes". I can not reproduce these issue. Devices (all with Android 8.0): Galaxy S7 edge (hero2lte) Galaxy S7 (herolte) Galaxy S8 (dreamlte) Galaxy A5(2017) (a5y17lte) Galaxy Note8 (greatlte) ### Crash log ### #00 pc 000000000004b3ac /system/lib/libc.so (tgkill+12) #01 pc 000000000001a473 /system/lib/libc.so (abort+54) #02 pc

Why does 'msg * alarm' disappear after a while?

∥☆過路亽.° 提交于 2021-02-07 10:48:12
问题 I have a small powershell script which allows me to quickly set an alarm for myself. It basically just waits a specified number of minutes and then calls msg * alarm! This works well - a message box pops up. The only problem is it disappears after a while - so if I'm not at my desk, I'll miss the message box. According to the documentation, found here, this is the behaviour when I don't specify a time value. /time: seconds : Specifies the amount of time the message you sent is displayed on