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

时间:2016-12-03 09:32:30

标签: android android-resources

当我生成签名的apk时,我遇到了这个问题:

  

F:\ ... \应用\ SRC \主\的java \ COM \ palletdesign \ clipdooni \ Activity_VideoPlay.java   错误:错误:字符串[ResourceType]

类型的预期资源

这是   Activity_videoplay.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 个答案:

答案 0 :(得分:3)

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

android {
  lintOptions {
    disable "ResourceType"
  }
}