sugarorm

Testing with SugarORM and Robolectric

拈花ヽ惹草 提交于 2019-12-01 06:15:41
问题 I trying to setup an testing environment for my android project. The basic Robolectric setup is done. I used this nice tutorial. If I comment out SugarORM in my Manifest.xml, all test works fine. But If I want to use it with SugarORM I always get this error: java.lang.NullPointerException at dalvik.system.DexFile$DFEnum.hasMoreElements(DexFile.java:239) at com.orm.SugarDb.getDomainClasses(SugarDb.java:37) at com.orm.SugarDb.createDatabase(SugarDb.java:104) at com.orm.SugarDb.onCreate(SugarDb

Android Sugar ORM with Existing DB & Custom File Path

a 夏天 提交于 2019-11-29 14:13:15
问题 I'm perfectly able to use Sugar ORM using provided examples. In my usecase I download a SQLite DB from the server (ETL load for it is in millions of records so has to be done server side). The download saves to a custom path on internal storage. In my case I do not need dynamic DB creation based on POCOs. Is it possible to use Sugar ORM with pre-existing SQLite DB, pointing to a custom path, provided if all POCO classes fields match the table structure? 回答1: First of all, I am not comfortable

Android: Sugar ORM No Such Table Exception

六月ゝ 毕业季﹏ 提交于 2019-11-26 22:55:49
问题 I am getting the No Such table exception when i am Using Sugar ORM with GPU image Android Library. I am using Gradle and Android Studio. Once i remove GPU image this issue is solved. So i don't know whats causing this exception. Details about this exception are also being discussed in this git issue and it seems a lot of people are still facing it. My crash log is posted below > 10-09 11:30:21.511 4326-4831/com.example.app E/SQLiteLog: (10) Failed > to do file read, got: 0, amt: 100, last

The number of method references in a .dex file cannot exceed 64k API 17

吃可爱长大的小学妹 提交于 2019-11-26 04:18:59
I am building an app with SugarORM Library but when I try to build the project for API 17 (didn't check for others) it shows build error. Information:Gradle tasks [:app:assembleDebug] :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAnimatedVectorDrawable2330Library UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72330Library UP-TO-DATE :app:prepareComAndroidSupportCardviewV72330Library UP-TO-DATE :app:prepareComAndroidSupportDesign2330Library UP-TO-DATE :app

The number of method references in a .dex file cannot exceed 64k API 17

五迷三道 提交于 2019-11-26 01:14:59
问题 I am building an app with SugarORM Library but when I try to build the project for API 17 (didn\'t check for others) it shows build error. Information:Gradle tasks [:app:assembleDebug] :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAnimatedVectorDrawable2330Library UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72330Library UP-TO-DATE :app:prepareComAndroidSupportCardviewV72330Library UP-TO-DATE