Skip to content
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

保存RowTile会出现主键冲突的错误 #10

Open
GoogleCodeExporter opened this issue May 20, 2015 · 0 comments
Open

保存RowTile会出现主键冲突的错误 #10

GoogleCodeExporter opened this issue May 20, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.启动程序
2.缩放或移动地图到一个新位置
3.LogCat报error insert image android database sqlite constraint 
failed错误在SQLLocalStorage.java 124行

我觉得应该是主键冲突的问题,在LocalStorageWrapper.java 
56行put函数中加入
if (!isExists(tile)){
localStorage.put(tile, data);
}
错误消失

我不知道自己改的对不对。

Original issue reported on code.google.com by [email protected] on 31 May 2011 at 7:48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant