App Crash [Android]

futureapp's Avatar

futureapp

18 Jun, 2018 11:39 AM

I Am trying ti create a beacan detect app

taking a code from your github page but u am facing some error

nullPointerException

please help

  1. 1 Posted by warsaw on 18 Jun, 2018 05:06 PM

    warsaw's Avatar

    Hello,

    What SDK do you use ? I am not sure what exactly happens on your side. Can you attach full stack trace and steps to reproduce? Do you use the provided sample app that comes with the SDK?

  2. 2 Posted by futureapp on 19 Jun, 2018 04:59 AM

    futureapp's Avatar

    iam using github code

    https://github.com/Ubudu/Android-SDK/tree/master/UbuduSDK/studio/Ub...

    when i am trying to add namespace i am showing error my app was crash
    on mainactivity when setnamespace

  3. 3 Posted by warsaw on 19 Jun, 2018 07:16 AM

    warsaw's Avatar

    Are you sure you have made no changes in the project, e.g. updated a gradle version?

    Do you use Android 8 or earlier ?

    Can you please paste met he full stack trace of your crash so I can track down the issue ?

  4. 4 Posted by warsaw on 19 Jun, 2018 02:19 PM

    warsaw's Avatar

    If you work with Android 8 please try using the following dependency in the app. The official version for Android 8 to appear in public github is still in Beta stage:

    compile('com.ubudu.sdk:ubudu-sdk:2.8.0-SNAPSHOT@aar') {
    transitive = true }

  5. 5 Posted by futureapp on 20 Jun, 2018 08:50 AM

    futureapp's Avatar

    on Mainactivity when i am adding
    mUbuduSdk = UbuduSDK.getSharedInstance(getApplicationContext()); mUbuduSdk.setNamespace(NAMESPACE);

    it show's me NullPointerException Don't know why

  6. 6 Posted by saulo.vera on 12 Jul, 2018 11:50 PM

    saulo.vera's Avatar

    Hello i have the same issue and i try with

    compile('com.ubudu.sdk:ubudu-sdk:2.8.0-SNAPSHOT@aar') {
    transitive = true }

    but i have same trouble when create UbuduSdk instance

    W/System.err: java.lang.NullPointerException: throw with null exception
    at com.ubudu.sdk.obfuscated.A.(Unknown Source:2627) at com.ubudu.sdk.obfuscated.A.b(Unknown Source:0) at com.ubudu.sdk.implementation.UbuduSDK.(SourceFile:715) at com.ubudu.sdk.implementation.UbuduSDK.a(SourceFile:116) at com.ubudu.sdk.UbuduSDK.getSharedInstance(SourceFile:65) 07-12 18:48:52.626 12642-12642/air.SamsClubMexico W/System.err: at com.ubudu.sdk.UbuduSDK.getSharedInstance(SourceFile:47)

  7. 7 Posted by Michal Gasztold on 13 Jul, 2018 09:29 AM

    Michal Gasztold's Avatar

    Hello

    I have just fixed the issue. Could you try to resync your build.gradle with the same snapshot again? To be sure your Android Studio refreshes the dependency you might need to add

    configurations.all {
    // check for updates every build resolutionStrategy.cacheChangingModulesFor 0, 'seconds' }

    to your top project build.gradle file into allprojects { entry.

    Please let me know if it solves your issue.

  8. 8 Posted by saulo.vera on 13 Jul, 2018 11:12 PM

    saulo.vera's Avatar

    Hello Michal
    thank you the bug is solved, but i test versions app with 2.7.2 and 2.8.0.SNAPSHOT
    but 2.8.0 version i don't receive notifications and i log in the console manager

    2018-07-13 23:01:27 UTCreturning user{event":"user","date":"2018-07-13 23:01:27 UTC","u_app_user":{"advertising_id":"00000000-0000-0000-0000-000000000000","advertising_tracking_mode_enabled":false,"language":"English","model":"Samsung SM-G950F","system_name":"Android","system_version":"8.0.0","system_build_number":"R16NW","system_api_id":26,"sdk_name":"Contextual Interactions SDK","sdk_version (189)","u_application_uid"........

    in app

    E/Volley: [979] BasicNetwork.performRequest: Unexpected response code 404 for https://manager.ubudu.com/u_ble_distance_models/find.json?model=Mot...

    regards

  9. 9 Posted by Michal Gasztold on 14 Jul, 2018 07:13 AM

    Michal Gasztold's Avatar

    Could you please provide me your application namespace id so i can try to
    reproduce? Have you tried the sample app from our public github?

    W dniu sob., 14.07.2018 o 01:12 saulo.vera <[email blocked]>
    napisał(a):

  10. 10 Posted by saulo.vera on 16 Jul, 2018 03:17 PM

    saulo.vera's Avatar

    Hello Michal
    Namespace app:
    2922b5a5da2ee43a943b74e3620ccbc8f8872d5c
    we use plugin gradle 'com.android.tools.build:gradle:3.1.2
    grade 4.4

    We have sample app, i will change gradle to add 2.8.0-SNAPSHOT version

    regards

  11. 11 Posted by saulo.vera on 16 Jul, 2018 04:45 PM

    saulo.vera's Avatar

    hello Michal

    sample app runs ok with

    implementation('com.android.support:support-v4:26.1.0') implementation('com.ubudu.sdk:ubudu-sdk:2.8.0-SNAPSHOT@aar') { transitive = true } implementation 'com.google.android.gms:play-services-maps:15.0.1' implementation 'com.google.android.gms:play-services-location:15.0.1'

    thanks you for the support

    regards

  12. 12 Posted by Michal Gasztold on 20 Jul, 2018 08:15 AM

    Michal Gasztold's Avatar

    Im glad to hear that.

    I have just released the library officialy on our github:

    https://github.com/Ubudu/Android-SDK/releases/tag/v2.8.0

    Have a great day! Regards

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac