Skip to content

Android 14 emulator: App crashes with java.lang.SecurityException: "Writable dex file is not allowed. " #277

@dangrima90

Description

@dangrima90

Describe the bug
Currently trying to run an application in an Android 14 emulator is resulting in a crash on launch with the following error:

System.err: Error: java.lang.SecurityException: Writable dex file '/data/user/0/com.test.MobileApp/code_cache/secondary-dexes/com.caverock.androidsvg.SVGExternalFileResolver_vendor_184168_42_SVGExternalFileResolver.jar' is not allowed.

Looking at the links below, the error points to an update that is needed here in relation to Android 14+ security updates:

To Reproduce
Steps to reproduce the behavior:

  1. Run application using Android 14

Expected behavior
App not to crash

Stack traces

System.err: Error: java.lang.SecurityException: Writable dex file '/data/user/0/com.test.MobileApp/code_cache/secondary-dexes/com.caverock.androidsvg.SVGExternalFileResolver_vendor_184168_42_SVGExternalFileResolver.jar' is not allowed.

Device
If the problem only occurs on some devices, please include the following info.

  • Device(s): On our production logs we've seen plenty of Pixel devices and a few Samsung Devices
  • Android version or API level: Android 14 (API Level 34)

Additional context

This is in a NativeScript Vue application which is using ui-svg library. Issue doesn't seem to be related with NativeScript or the library itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions