gpt4 book ai didi

android - 生成签名apk报错:Error: Expected resource of type string [ResourceType]

转载 作者:搜寻专家 更新时间:2023-11-01 07:47:29 27 4
gpt4 key购买 nike

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

F:\...\app\src\main\java\com\palletdesign\clipdooni\Activity_VideoPlay.java Error:Error: Expected resource of type string [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");

最佳答案

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

android {
lintOptions {
disable "ResourceType"
}
}

关于android - 生成签名apk报错:Error: Expected resource of type string [ResourceType],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40946281/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com