Package xyz has mismatched uid: 10044 on disk, 10045 in settings

后端 未结 3 2028
情深已故
情深已故 2021-02-09 00:45

I found a simple guide to install an Android-x86 in a VM (guide).
Connection to Eclipse and all works fine, but installing my app on the VM fails with following errors:

3条回答
  •  南旧
    南旧 (楼主)
    2021-02-09 01:46

    The problem had to do with a program called "dexopt" which determines a fixed-size buffer called "LinearAlloc" of apps installed on a specific device. While the buffer size is 8 or 16 MB in size for newer Android versions like Ice Cream Sandwich and Jelly Bean, its only 5 MB in the older versions.

    When you sign the apk, you probably execute proguard steps, which removes unreferenced code parts(classes, methods, fields etc.) So you pass that error related with the buffer size.

    But proguard may not be a solution every time, you still have the possibility to exceed the buffer size limit.

    Facebook has a solution for this: "Breaking our app into multiple dex files". See: https://www.facebook.com/notes/facebook-engineering/under-the-hood-dalvik-patch-for-facebook-for-android/10151345597798920

提交回复
热议问题