使用bundler安装当前的rspec版本时,我收到以下错误。
The gem rspec-core-3.7.1 can't be installed because the security policy
didn't allow it, with the message: missing digest for metadata.gz
所以我试图运行
bundle --trust-policy=NoSecurity
但仍然得到同样的错误。
我做错了什么?
答案 0 :(得分:1)
来自https://github.com/bundler/bundler/blob/master/lib/bundler/rubygems_integration.rb
# TODO: This is for older versions of RubyGems... should we support the
# X-Gemfile-Source header on these old versions?
# Maybe the newer implementation will work on older RubyGems?
# It seems difficult to keep this implementation and still send the header.
我会尝试以下
更新Rubygem
gem install rubygems-update
update_rubygems
gem update --system
更改您正在使用的ruby版本。如果您使用的是rbenv
,请按rvm
,MediaMetadataRetriever retriever = new MediaMetadataRetriever();
retriever.setDataSource(songpath);
byte[] art = retriever.getEmbeddedPicture();
if (art != null) {
Glide.with(c).load(art)
.crossFade()
.diskCacheStrategy(DiskCacheStrategy.SOURCE)
.into(holder.songimage);
//holder.songimage.setImageBitmap(BitmapFactory.decodeByteArray(art, 0, art.length));
} else {
Glide.with(c).load(R.drawable.splash)
.crossFade()
.diskCacheStrategy(DiskCacheStrategy.SOURCE)
.into(holder.songimage);
//holder.songimage.setImageResource(R.drawable.splash);
}
,{J}}