2019-01-30 11:47 PM
I am using the latest (1.06) android sample code for BLUENRG-2 SoC. After compiling the sample code with MobleLibrary-release.aar library, the apk file is created but when I am running the app in my mobile it crashes. I tried to debug the code and saw that the crash happens at/after : "mNetwork = mobleNetwork.createNetwork(address);" in the Configuration.java file. Kindly guide.
Solved! Go to Solution.
2019-02-03 08:46 PM
Is there a ndk path appended in the local.properties?
if yes, please remove it(keep only sdk path) , build and run it.
2019-01-31 05:55 AM
Did you try the App available on Play-store ? Does it crash too ?
Which is your phone model ?
In addition to compiling, Did you make any changes to the SDK before to run the App ?
2019-01-31 07:34 PM
Answers:
1. I tried the App available on Play-store.
2. It didn't crash.
3. I have tested the compiled apk file in 3 models,
1. Redmi Note 4 (API 23),
2. Mi A1 OS upgraded to Pie (API 28)
3. Poco F1 OS upgraded to Pie (API 28) with MiUI 10
4. I didn't make any changes to SDK before compiling.
2019-01-31 07:35 PM
Answers:
1. I tried the App available on Play-store.
2. It didn't crash.
3. I have tested the compiled apk file in 3 models,
a. Redmi Note 4 (API 23),
b. Mi A1 OS upgraded to Pie (API 28)
c. Poco F1 OS upgraded to Pie (API 28) with MiUI 10
4. I didn't make any changes to SDK before compiling.
2019-02-01 09:07 PM
Kindly confirm if you have used following environment as suggested in the release notes ?
2019-02-01 09:37 PM
Yes
2019-02-03 08:46 PM
Is there a ndk path appended in the local.properties?
if yes, please remove it(keep only sdk path) , build and run it.
2019-02-03 09:28 PM
Dont debug, just run it.
2019-02-03 10:56 PM
Thank you. Now it is working fine.
I have few more queries.
A. I want to create a custom Android app. Do I need to keep the following setting for the MobleLibrary-release.aar?
Note: The ndk path automatically gets enabled every time I start/open the project i.e. during sync time.
B. What is the minimum sdk supported by library? I want it to support minimum API 19.
C. Does the library require any JSON based communication? Is there any kind of dependency of library on JSON based communication?
2019-02-03 11:46 PM
@Nishant,
Good that your query is resolved. Kindly post a new query so that all the members of the forum who may have similar question can get benefited. Thanks