Issue
I have this problem when I generate signed apk:
F:\...\app\src\main\java\com\palletdesign\clipdooni\Activity_VideoPlay.java Error:Error: Expected resource of type string [ResourceType]
and this is Activity_videoplay.java (Error for this part of code ) :
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");
Solution
In your build.gradle
file add this code :
android {
lintOptions {
disable "ResourceType"
}
}
Answered By - Harshad Pansuriya
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.