android.database.sqlite.SQLiteException: no such table错误

android.database.sqlite.SQLiteException: no such table


1.一般这种错误出现的原因常见的是由于没有使用数据库中的表的时候把表名写错了,导致表名与创建的表的名称不同而出错。

解决办法:

仔细检查表名,把表名写正确,与所创建的表名一致。

 

2.另一种原因可能是编译器导致的原因,我遇到过一次。情况是仔细检查了数据库中表的创建与表的使用过程中都没有出错,但是还是会出现这种错误。

这种情况的解决办法 :

把该程序在bin文件夹中所产生的APK删除(如果程序在手机上运行,那么也把在手机上产生的该程序的APK也删除掉。简而言之,就是把运行该程序所产生的APK都删除掉!),然后再运行一次编译器,让它新产生一个该程序的APK.


转自:https://blog.csdn.net/ada168855/article/details/8684766?ticket=ST-3076-Q9zZ2yrr7t3DvUKw5Lgl-passport.csdn.net


方法二非常靠谱,以做学习参考。如有侵权,请联系删除。

  • 3
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
Title: Android SQLite Essentials Author: Sunny Kumar Aditya, Vikash Kumar Karn Length: 127 pages Edition: 1 Language: English Publisher: Packt Publishing Publication Date: 2014-08-25 ISBN-10: 1783282959 ISBN-13: 9781783282951 Develop Android applications with one of the most widely used database engines, SQLite About This Book Develop database-driven Android applications and stay ahead of the curve Explore the best techniques to use cursors and loaders to achieve optimum results A step-by-step approach to use SQLite for building Android applications Who This Book Is For This is an ideal book for Android programmers who want to explore SQLite databases based on Android applications. The general competency level expected of the reader is prior knowledge of developing applications and basic knowledge of Android and SQL. In Detail SQLite is an open source relational database management system. Android uses the SQLite database to store and retrieve data persistently. The driving force behind the platform is the database, enabling a myriad of choices for developers making cutting-edge applications. Android SQLite Essentials focuses on the core concepts behind building database-driven applications. This book covers the basic and advanced topics with equivalent simplicity and detail, in order to enable readers to quickly grasp and implement the concepts to build an application database. This book takes a hands-on, example-based approach to help readers understand the core topics of SQLite and Android database-driven applications. This book focuses on providing you with latent as well as widespread knowledge about practices and approaches towards development in an easily understandable manner. Table of Contents Chapter 1. Enter SQLite Chapter 2. Connecting the Dots Chapter 3. Sharing is Caring Chapter 4. Thread Carefully

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值