Skip to content

Logging not working in Android Studio Emulator #340

@smhmic

Description

@smhmic

I am expecting to see network requests being made by the Branch SDK every time the app is opened or an event that is tracked in the app is triggered, whether through a Branch link or triggering the events organically within the app. But we only see minimal logs. The light green are print statements in our code placed just before we call FlutterBranchSdk.trackContentWithoutBuo().
image

I followed Branch support instructions to:

  • Run the Integration Validator with no errors.

  • Confirm we are using Branch's Flutter SDK 7.3.0. Branch support said:

    "this points to the Android SDK version being used in the version of Flutter you are using is what is causing these issues with the logs not appearing (logging issue on Android SDK v5.8.0 was fixed in v5.8.1)."

    image

  • Enable logging.
    image
    image
    I tried with useTestKey both on and off, and the output looks the same, except for this log entry:

    BranchSDK: enableTestMode has been changed. It now uses the test key but will not log or randomize the device IDs. If you wish to enable logging, please invoke enableLogging.
    

Test device:

  • Flutter: v3.19.5
  • OS: Android 14.0 (U) - API 34
  • Device: Android Studio Emulator 34.1.20-11610631
  • Model: sdk_gphone64_arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions