如何避免在SQLiteAssetHelper中在版本号中使用+ [英] How to avoid using + in version number with SQLiteAssetHelper

查看:143
本文介绍了如何避免在SQLiteAssetHelper中在版本号中使用+的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用SQLiteAssetHelper类来管理我的应用程序中的SQLite数据库.

I am using the SQLiteAssetHelper class to manage an SQLite database in my app.

为此,我已按照有关如何在GitHub上使用SQLiteAssetHelper的说明进行操作,该操作是将compile 'com.readystatesoftware.sqliteasset:sqliteassethelper:+'添加到我的build.gradle文件中的依赖项中.

To do this I have followed the instructions on how to use SQLiteAssetHelper on GitHub, which is to add compile 'com.readystatesoftware.sqliteasset:sqliteassethelper:+' to my dependencies in my build.gradle file.

但是,当我这样做时,android studio会给我一个黄色警告,提示avoid using + in version numbers; can lead to unpredictable and unrepeatable builds

However, when I do this, android studio gives me a yellow warning, which says avoid using + in version numbers; can lead to unpredictable and unrepeatable builds

不祥的声音*咕**

但是我将在下面发布的GitHub页面没有提供版本号,只是说要添加compile 'com.readystatesoftware.sqliteasset:sqliteassethelper:+'

but this GitHub page, which I will post below, doesn't offer a version number, it just says to add compile 'com.readystatesoftware.sqliteasset:sqliteassethelper:+'

我应该只留下+号吗?还是有更好的方法来做到这一点?

Should I just leave the +? or is there a better way to do this?

https://github.com/jgilfelt/android-sqlite-asset-helper

推荐答案

如果单击

If you click on the releases tab, you can see that the most recent release is 2.0.1. It is better that you specify this explicitly in order to have predictable builds.

这篇关于如何避免在SQLiteAssetHelper中在版本号中使用+的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆