当我生成签名的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");
答案 0 :(得分:3)
在build.gradle
文件中添加以下代码:
android {
lintOptions {
disable "ResourceType"
}
}