Hybrid app crashing in Android studio with error: Session 'android': Error Launching activity

后端 未结 1 634
闹比i
闹比i 2020-12-22 00:14

I am a little new to Android Studio and hybrid application building suing cordova.

I am trying to build a Salesforce hybrid app in Android Studio.

The projec

相关标签:
1条回答
  • 2020-12-22 01:02

    I also encountered the error message

    Error code: 393238 | Buffer overflow, no available space.

    For me, the reason was that I was targeting Android 24. Android 24 has a change that results in a FileUreExposedException being thrown when using a file:// URI instead of a content:// URI. For more details, see:

    https://developer.android.com/reference/android/os/FileUriExposedException.html

    Unfortunately, the emulator swallowed this exception so it was a bit difficult to detect; it showed only the "Buffer overflow, no available space." message.

    A simple workaround is to target Android 23.

    Better solutions are described here:

    android.os.FileUriExposedException: file:///storage/emulated/0/test.txt exposed beyond app through Intent.getData()

    0 讨论(0)
提交回复
热议问题