Android Studio SugarORM No Such Table, androidsugarorm

Source: Internet
Author: User

Android Studio SugarORM No Such Table, androidsugarorm

When we use SugarORM today, SQLite always reports no such table (note Android Studio 2.2.2). The Sugar configuration in AndroidManifest. xml is as follows:

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 "/>

Then there are various no such tables. Check whether the object class is correct. If the "DOMAIN_PACKAGE_NAME" configuration is correct, the instant Run in setting is also disabled. In short, there is no such table, finally, in StackOverflow, you can find out how to upgrade "VERSION", change "VERSION" from 2 to 3, and then there is no problem. In setting, the instant Run is on.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.