标签:log div flow class 检查 ble dma com data-
今天学习使用SugarORM时SQLite总是报no such table(注Android Studio版本2.2.2),刚开始AndroidManifest.xml内Sugar配置如下:
android:name="com.orm.SugarApp"> <meta-data android:name="DATABASE" android:value="sugar_goods.db"/> <meta-data android:name="VERSION" android:value="2"/> <meta-data android:name="QUERY_LOG" android:value="true"/> <meta-data android:name="DOMAIN_PACKAGE_NAME" android:value="com.hh"/>
然后就是各种no such table,检查实体类没错,"DOMAIN_PACKAGE_NAME"配置没错,setting里面instant Run也关掉了,总之还是no such table,最后在StackOverflow翻出一句升级"VERSION"版本设定,然后就把"VERSION"从2改成了3,然后就没问题了。setting里面instant Run开着都没问题的。
Android Studio SugarORM No Such Table
标签:log div flow class 检查 ble dma com data-
原文地址:http://www.cnblogs.com/zhiguzhidao/p/6577468.html