当前位置: 首页 > 知识库问答 >
问题:

生成签名apk错误:错误:类型为字符串[ResourceType]的预期资源

古明煦
2023-03-14

我有这个问题,当我生成签名apk:

F:\。。。\app\src\main\java\com\palletdesign\clipdooni\Activity\u VideoPlay。java错误:错误:类型为字符串[ResourceType]的预期资源

这是活动视频游戏。java(这部分代码的错误):

position = i.getIntExtra("POSITION", 0);
allArrayVideo = i.getStringArrayExtra("VIDEO_ID");
allArrayVideoCatName = i.getStringArrayExtra("VIDEO_CATNAME");
allArrayVideoCatId = i.getStringArrayExtra("VIDEO_CATID");
allArrayVideourl = i.getStringArrayExtra("VIDEO_URL");
allArrayVideoName = i.getStringArrayExtra("VIDEO_NAME");
allArrayVideoId = i.getStringArrayExtra("VIDEO_CID");
allArrayVideoDuration = i.getStringArrayExtra("VIDEO_DURATION");
allArrayVideoDesc = i.getStringArrayExtra("VIDEO_DISCRIPTION");
allArrayImageUrl = i.getStringArrayExtra("VIDEO_IMAGE_URL");

共有1个答案

经骁
2023-03-14

在您的build.gradle文件中添加以下代码:

android {
  lintOptions {
    disable "ResourceType"
  }
}
 类似资料: