I get this error: Data exceeds UNCOMPRESS_DATA_MAX on android 2.2 but not on 2.3

后端 未结 5 1104
借酒劲吻你
借酒劲吻你 2020-12-03 14:22

I am getting an error only on the version android 2.2 but not on 2.3.

The error :

 04-26 13:41:34.862: ERROR/Database(3701):  sqlite3_open_v2(\"/data         


        
5条回答
  •  心在旅途
    2020-12-03 15:05

    I did what Bob has mentioned above. It worked great for me. I was unable to run the app on versions older than 2.3.3 but when I renamed my .html file (which was 4MB due to Web SQL commands) to .jet (or for that matter any already-compressed extension as mentioned in enter link description here), it worked fine on 2.1 update1 and 2.2 also.

    The problem was Android versions older to 2.3.3 were trying to compress all files more than 1MB in size in the /assets/ folder. So, I renamed it to already-compressed extension so that the Android does not try to compress it again. Though I am not aware of Android programming, I think that is what is happening after reading the above and few other links online.

提交回复
热议问题