我的Android Studio版本是2.1预览版.我正在使用Google API,Android 17,rev 4(API 17)运行我的项目.
调试应用程序时出现1次弹出错误.
[Information: Image to show my pop-up errror. Click to show this.][1]
Run Code Online (Sandbox Code Playgroud)
我从来没有遇到过这样的错误.我该如何解决这个问题?
更新:
我经常遇到这样的错误:
error: diamond operator is not supported in -source 1.6
(use -source 7 or higher to enable diamond operator
Run Code Online (Sandbox Code Playgroud)
我想尝试对此进行研究.我试过但它从来没有成功过.该错误何时发生,我该如何解决?
谢谢.
我有两个文件,一个是.webm音频文件,另一个是.mp4视频文件有没有办法使用java将这两个文件组合在一起?
提前致谢.
SqliteDatabase我的申请中有一个。在此数据库中,我保存了Sting和Blob(用于保存图像)。该图像使用byte []保存在应用程序中。我借助以下代码将该图像转换为Bitmap:
byte[] Recycler_imageByte;
Bitmap Recycler_theImage;
holder.Recycler_imageByte = data.get(position).getKey_image();
ByteArrayInputStream imageStream = new ByteArrayInputStream(holder.Recycler_imageByte);
holder.Recycler_theImage = BitmapFactory.decodeStream(imageStream);
Run Code Online (Sandbox Code Playgroud)
我想在Glidelibary中显示此图像,我编写了以下代码:
Glide.with(context).load(holder.Recycler_theImage).asBitmap().into(holder.Recycler_adapter_image);
Run Code Online (Sandbox Code Playgroud)
但是,当我运行应用程序时,显示以下错误:
03-15 10:23:14.311 22440-22440/com.tellfa.dastanak E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.tellfa.dastanak, PID: 22440
java.lang.IllegalArgumentException: Unknown type class android.graphics.Bitmap. You must provide a Model of a type for which there is a registered ModelLoader, if you are using a custom model, you must first call Glide#register with a ModelLoaderFactory for your custom model class …Run Code Online (Sandbox Code Playgroud)