这是从我的项目中创建的json文件
[
{
"androidPlayStoreLink":"i have added valid playstore link here removed purposely here",
"animatedStickerPack":false,
"avoidCache":false,
"identifier":"50016",
"imageDataVersion":"",
"index":"0",
"isCustom":false,
"isPremimmum":false,
"isWhitelisted":false,
"licenseAgreementWebsite":"",
"name":"Thanks",
"privacyPolicyWebsite":"",
"publisher":"TEST CONTENT",
"publisherEmail":"1",
"publisherWebsite":"",
"stickerMode":0,
"stickers":[
{
"emojis":[
],
"imageFileName":"500161",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/500161.webp"
},
{
"emojis":[
],
"imageFileName":"500162",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/500162.webp"
},
{
"emojis":[
],
"imageFileName":"500163",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/500163.webp"
},
{
"emojis":[
],
"imageFileName":"500164",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/500164.webp"
},
{
"emojis":[
],
"imageFileName":"500165",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/500165.webp"
},
{
"emojis":[
],
"imageFileName":"500166",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/500166.webp"
},
{
"emojis":[
],
"imageFileName":"500167",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/500167.webp"
},
{
"emojis":[
],
"imageFileName":"500168",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/500168.webp"
},
{
"emojis":[
],
"imageFileName":"500169",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/500169.webp"
},
{
"emojis":[
],
"imageFileName":"5001610",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001610.webp"
},
{
"emojis":[
],
"imageFileName":"5001611",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001611.webp"
},
{
"emojis":[
],
"imageFileName":"5001612",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001612.webp"
},
{
"emojis":[
],
"imageFileName":"5001613",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001613.webp"
},
{
"emojis":[
],
"imageFileName":"5001614",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001614.webp"
},
{
"emojis":[
],
"imageFileName":"5001615",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001615.webp"
},
{
"emojis":[
],
"imageFileName":"5001616",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001616.webp"
},
{
"emojis":[
],
"imageFileName":"5001617",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001617.webp"
},
{
"emojis":[
],
"imageFileName":"5001618",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001618.webp"
},
{
"emojis":[
],
"imageFileName":"5001619",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001619.webp"
},
{
"emojis":[
],
"imageFileName":"5001620",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001620.webp"
},
{
"emojis":[
],
"imageFileName":"5001621",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001621.webp"
},
{
"emojis":[
],
"imageFileName":"5001622",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001622.webp"
},
{
"emojis":[
],
"imageFileName":"5001623",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001623.webp"
},
{
"emojis":[
],
"imageFileName":"5001624",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001624.webp"
},
{
"emojis":[
],
"imageFileName":"5001625",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001625.webp"
},
{
"emojis":[
],
"imageFileName":"5001626",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001626.webp"
},
{
"emojis":[
],
"imageFileName":"5001627",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001627.webp"
},
{
"emojis":[
],
"imageFileName":"5001628",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001628.webp"
},
{
"emojis":[
],
"imageFileName":"5001629",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001629.webp"
},
{
"emojis":[
],
"imageFileName":"5001630",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/50016/5001630.webp"
}
],
"stickersAddedIndex":30,
"totalSize":0,
"trayImageFile":"my_tray_icon.webp"
},
{
"androidPlayStoreLink":"i have added valid playstore link here removed purposely here",
"animatedStickerPack":true,
"avoidCache":false,
"identifier":"60006",
"imageDataVersion":"",
"index":"0",
"isCustom":false,
"isPremimmum":false,
"isWhitelisted":false,
"licenseAgreementWebsite":"",
"name":"Dogs",
"privacyPolicyWebsite":"",
"publisher":"TEST CONTENT",
"publisherEmail":"1",
"publisherWebsite":"",
"stickerMode":0,
"stickers":[
{
"emojis":[
],
"imageFileName":"600061",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/60006/600061.webp"
},
{
"emojis":[
],
"imageFileName":"600062",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/60006/600062.webp"
},
{
"emojis":[
],
"imageFileName":"600063",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/60006/600063.webp"
},
{
"emojis":[
],
"imageFileName":"600065",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/60006/600065.webp"
},
{
"emojis":[
],
"imageFileName":"600066",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/60006/600066.webp"
},
{
"emojis":[
],
"imageFileName":"600067",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/60006/600067.webp"
},
{
"emojis":[
],
"imageFileName":"600068",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/60006/600068.webp"
},
{
"emojis":[
],
"imageFileName":"600069",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/60006/600069.webp"
},
{
"emojis":[
],
"imageFileName":"6000610",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/60006/6000610.webp"
},
{
"emojis":[
],
"imageFileName":"6000611",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/60006/6000611.webp"
},
{
"emojis":[
],
"imageFileName":"6000612",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/60006/6000612.webp"
},
{
"emojis":[
],
"imageFileName":"6000613",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/60006/6000613.webp"
},
{
"emojis":[
],
"imageFileName":"6000614",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/60006/6000614.webp"
},
{
"emojis":[
],
"imageFileName":"6000615",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/60006/6000615.webp"
},
{
"emojis":[
],
"imageFileName":"6000616",
"size":0,
"uri":"file:///data/user/0/com.example.myapppackagename/files/60006/6000616.webp"
}
],
"stickersAddedIndex":15,
"totalSize":0,
"trayImageFile":"my_tray_icon.webp"
}
]
我是不是漏掉了什么?FD应该在这里添加哪个字段?谁能帮我解决这个问题。任何帮助都将不胜感激。谢谢。
如果您有自定义uri,请执行以下操作
File file =new File(uri);
Uri newUri = Uri.fromFile(file);
getApplicationContext().getContentResolver().openFileDescriptor(newUri,"r" );
和openAssetFile中的内容提供程序类
pfd = Objects.requireNonNull(getContext()).getContentResolver().openFileDescriptor(
csp.getTrayImageUri(), "r");
然后执行您的工作,而且,如果你有任何查询IB我或评论在这里
-web应用程序位于此链接https://github.com/exo-archives/acceptance -堆栈跟踪: [错误]无法执行目标组织。阿帕奇。专家插件:maven surefire插件:2.10:项目验收webapp上的测试(默认测试):存在测试失败。[错误][错误]请参阅C:\acceptance\acceptance\acceptance webapp\target\sure
为了构建一个贴纸应用程序,我遵循以下指南:https://github.com/whatsapp/stickers/tree/master/Android 一切都很好(包括将贴纸添加到whatsapp),除了一件事:包细节视图()中没有显示webp贴纸。 我正在像这样更改贴纸文件的加载位置 StickerPreviewAdapter.java *如这里所述:https://github.com/w
问题内容: 当我使用编译类时,收到此错误消息? 包不存在 我可以通过将其包含在编译类路径中来进行修复。 为什么不在默认的jdk类路径上? 是在类路径上,并包括其他软件包,但jce似乎很特殊? 问题答案: 好的,这是我的错误。我用来编译代码的Ant文件在任务中具有以下属性: h 您可以像这样添加JCE jar:
试图制作正确的XML,但不断得到这个错误: 在此进行测试: http://www.utilities-online.info/xsdvalidation 代码:.xml:
一个示例用例: 错误:无法取消应用scalaz的类型验证为类型为的类型构造函数,该类型构造函数由类型类 的实例造成的 我可以为自己做一个,比如: 但是为什么还没有呢?毕竟,已经定义了方法。 此外,我不能有和在一起了(这花了我很长时间才弄清楚...),因为另一个复杂的错误... 模糊的隐式值:类似于(我的实例)和trait中的方法...两者都匹配一些... 我应该修改scaraz的源代码吗?或者我完
URL类 来自服务器的最终响应: