该Resources.getColor(int id)方法已被弃用.
@ColorInt
@Deprecated
public int getColor(@ColorRes int id) throws NotFoundException {
return getColor(id, null);
}
Run Code Online (Sandbox Code Playgroud)
我该怎么办?
android android-resources android-mnc android-6.0-marshmallow
我刚刚更新了Android Studio,我无法再同步我的项目了.
事件日志报告:
Gradle sync failed: /Applications/Android Studio.app/Contents/gradle/gradle-X.X.X/lib/plugins/gradle-diagnostics-X.X.X.jar (No such file or directory)
Run Code Online (Sandbox Code Playgroud) 我有一个AppWidget,我想在Lollipop前设备上使用VectorDrawables.VectorDrawableCompat不能与我创建的RemoteViews一起使用.
为了保持我的应用APK大小,我不想为旧的API平台添加我的drawables的替代PNG版本.
我怎样才能做到这一点?
android android-appcompat remoteview android-support-library android-vectordrawable