![](/img/trans.png)
[英]Android library: activeandroid index and unique annotation not available
[英]activeandroid orm library index=true and unique=true not working
正如activeandroid库建议在此处使用注解唯一和索引注解参数一样,
@Column(name = "Category", index = true)
public String category;
我尝试实现此方法,但是注释参数index或unique在库中不可用。 我也在使用3.0版jar Tried版本3.1 beta,那里也有同样的问题。 虽然3.1是最新的jar,但是我缺少什么吗? 请提出一个使用activeandroid库时创建索引的解决方案。 谢谢
我遇到了同样的问题,通过更新到版本3.1.0解决了该问题,记得添加如下所示的依赖项:
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
compile 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.