我想在我的應用程序中使用SugarOrm。錯誤:在將Sugar ORM添加到項目後無法找到符號方法getColor(Context,int)
如果我的如下補充:
compile 'com.github.satyan:sugar:1.4'
到gradle這個文件
和
android:name="com.orm.SugarApp"
我mainfest的應用程序名稱
我得到生成以下錯誤:
Error:(75, 55) error: cannot find symbol method getColor(Context,int)
在這一行:
holder.bg.setBackgroundColor(ContextCompat.getColor(ctx, R.color.primary_move));
如果我簽到以前的版本沒有這兩條線,我的應用程序構建和runds沒有錯誤。
有什麼建議嗎?