-
Notifications
You must be signed in to change notification settings - Fork 569
Error copying icu data fileicudt46l.zip on Android 4.1.1 #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi Mark, We have a test that exercies the |
Yes, you can see it in the project that I cited in the issue.
Where does it get unzipped to? My call to
It succeeds. One difference between my test suite and yours is that mine is a separate JUnit test suite, following the Android test instrumentation approach, whereas yours is a regular app that happens to run tests. |
Never mind, I see that in the code. The |
OK, I get it now. My main project -- an Android library project -- had SQLCipher for Android in it. My test project referenced the main project as an Android library project. However, Anyway, issue resolved -- thanks for the help! |
Hi Mark, Thanks for following up, glad to hear your issue is resolved. We use a regular Android project over JUnit tests as it allows us to test the implementation easily across various Android emulators. It may have succeeded on previous devices/emulators if the |
Environment: Android 4.1.1 (Nexus S), 4.1 (ARM emulator); SQLCipher for Android 2.0.8
Symptoms: On
getWriteableDatabase()
call inSQLiteDatabase
, an error is logged to LogCat (Error copying icu data fileicudt46l.zip
), and the attempt to open the database fails indbopen()
:09-12 09:14:34.004: I/TestRunner(16903): net.sqlcipher.database.SQLiteException: not an error
09-12 09:14:34.004: I/TestRunner(16903): at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method)
09-12 09:14:34.004: I/TestRunner(16903): at net.sqlcipher.database.SQLiteDatabase.(SQLiteDatabase.java:1952)
09-12 09:14:34.004: I/TestRunner(16903): at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:902)
09-12 09:14:34.004: I/TestRunner(16903): at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:945)
09-12 09:14:34.004: I/TestRunner(16903): at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:107)
The same code works fine on 4.0.3 (emulator).
You can see this in action via https://github.com/commonsguy/cwac-prefs (a
SharedPreferences
implementation that uses SQLCipher for Android as a backing store). The test suite (in thetests/
sub-project) runs fine on 4.0.3 and fails on 4.1.x.The text was updated successfully, but these errors were encountered: