Failed to write file: /data/data/(package name)/cache/.system/resources/plugins.dex for library widgetLibrary.widget.

(Sorry for poor english)
 
 
In android device, widget-scrollview outputs many errors.
 
and do not respond about 30 seconds.
 
I captured this error with “adb logcat | grep Corona” command.
 
* iOS and Simulator runs normal.

-- Generate Ranking List local function drawRangkingBox() local userInfo = userInfo rankGroup = disp.newGroup() uiGroup:insert( rankGroup ) local panel = disp.newImageRect( rankGroup, 'img/ui/mid\_c.png', 562, 481) panel.x, panel.y = 320, 377 -- Friends ranking list local gameFriends = userInfo.gameFriends -- scroll 463, 416 local rowHeight = 101 local scrollHeight = #gameFriends\*rowHeight + 2 local option = { left = 44, top = 135, width = 567, height = 480, hideBackground = true, hideScrollBar = false, scrollHeight = scrollHeight, horizontalScrollDisabled = true, maskFile = 'img/rank\_mask.png', scrollBarColor = {40, 67, 60}, isHitTestMasked = true, } rankScroll = widget.newScrollView( option ) local maskRatioX, maskRatioY = 562/504, 480/504 rankScroll.maskScaleX, rankScroll.maskScaleY = maskRatioX, maskRatioY local number\_format = number\_format local toOption = {time = 1000, xScale = 1.0, yScale = 1.0, transition = easing2.outElastic } local pointNumberOption = {x = 160, align='left', numberType = 1, scale=0.9, animate = false} -- \*\*\*\*\*\* 랭킹 리스트 생성 \*\*\*\*\*\* local myRankScrollPosition = 0 local heartLogs = userInfo.heartLogs local unknownThumbFrame = uiSheetInfo:getFrameIndex('box') -- 1094 DAILY BUILD ERROR (Devices Freezing) for i = 1, #gameFriends do local fr\_idx = gameFriends[i].user\_idx local offset = (i - 1) \* rowHeight + 2 -- 슬롯 판떼기 local rankSlot local point if fr\_idx == userInfo.user\_idx then -- 내 판떼기 rankSlot = newImage( uiSheet, uiSheetInfo:getFrameIndex('slot\_b') ) myRankScrollPosition = offset point = userInfo.week\_point else -- 친구 판떼기 rankSlot = newImage( uiSheet, uiSheetInfo:getFrameIndex('slot\_a') ) point = gameFriends[i].week\_point end rankSlot:translate( 0, offset ) rankScroll:insert( rankSlot ) -- 프로필이미지 다운로드 여부 체크 (tempThumbs는 임시 프로필 url) local thumbFileName = tempThumbs[fr\_idx] if doesFileExist( thumbFileName ) then -- print(' exists') local rankThumb = disp.newImageRect( thumbFileName, system.DocumentsDirectory, 74,74 ) rankThumb.x, rankThumb.y = 110, offset + 50 rankScroll:insert( rankThumb ) -- fr\_idx를 키 값으로 이미지 객체의 메모리 포인터 저장 thumbsFrIdxKey[fr\_idx] = rankThumb rankThumb.imgName = thumbFileName rankThumb.nick = gameFriends[i].nick -- 친구 목록에 이미지 이름 저장 gameFriends[i].imgName = thumbFileName else -- default photo local rankSlotPhoto = newImage( uiSheet, unknownThumbFrame ) rankScroll:insert( rankSlotPhoto ) rankSlotPhoto.x, rankSlotPhoto.y = 110, offset + 50 -- register to request insert(thumbs, {loaded=false, fr\_idx=fr\_idx, nick=gameFriends[i].nick, imgName=thumbFileName, y=offset+52}) end -- photo frame local rankSlotPhotoFrame = newImage( uiSheet, uiSheetInfo:getFrameIndex('slot\_c') ) rankScroll:insert( rankSlotPhotoFrame ) rankSlotPhotoFrame.x, rankSlotPhotoFrame.y = 110, offset + 50 -- rank if gameFriends[i].week\_point \> 0 then if i \< 4 then -- 상위 1,2,3 local topRanker = newImage( uiSheet, uiSheetInfo:getFrameIndex('rank\_'..i) ) topRanker.x, topRanker.y = 40, offset+50 rankScroll:insert( topRanker ) else -- 나머지 imgNumber.new( rankScroll, i, {x=40, y=offset+50, align='center', numberType=1, animate=false, scale=0.8} ) end -- 랭킹 값 추가 저장 gameFriends[i].ranking = i else gameFriends[i].ranking = -1 end -- 이름 local nameText = disp.newText( gameFriends[i].nick, 0, 0, DEF\_FONT, 22 ) rankScroll:insert( nameText ) nameText:setTextColor( 40, 122, 110 ) nameText:setReferencePoint( disp.CenterLeftReferencePoint ) nameText.x, nameText.y = 152, offset + 27 -- 점수 pointNumberOption.y = offset + 70 imgNumber.new( rankScroll, number\_format(point), pointNumberOption) -- 하트 보내기 버튼 if fr\_idx ~= userInfo.user\_idx then -- \*\*\*\*\*\*\*\*\*\* 친구 \*\*\*\*\*\*\*\*\* -- 터치 후 액션 핸들러 local sendHeart local sendHeartDisabled -- 하트보내기 팝업 후 OK 누를 시 local function action() -- 네트워크 요청 local post = { from\_user\_idx = userInfo.user\_idx, to\_user\_idx = fr\_idx, from\_uid = userInfo.uid, to\_uid = gameFriends[i].uid, from\_nick = util:urlencode(gameFriends[i].nick), from\_thumb = thumbFileName, type = 1, val = 1 } -- for parameter local function \_afterHeartSend( res ) print('AFTER HEART SENDING') heartSendHandler( res, heartLogs, sendHeart, sendHeartDisabled ) end net:post( '/message/send', post, \_afterHeartSend ) end local function \_onTouchSendHeart() print('\_onTouchSendHeart') onTouchSendHeart( gameFriends[i].nick, action ) end -- 하트보내기 활성화 버튼 생성 sendHeart = util.makeButton( uiGroup, uiSheet, uiSheetInfo, 500, offset + 50, { offImg = 'ht\_a', scrollView = rankScroll, onTouch = \_onTouchSendHeart, }) sendHeart.isVisible = false rankScroll:insert( sendHeart ) local icon = newImage( sendHeart, uiSheet, uiSheetInfo:getFrameIndex('ht\_c') ) icon.x, icon.y = sendHeart.x+22, sendHeart.y+22 -- 비활성화 버튼 sendHeartDisabled = newImage( uiSheet, uiSheetInfo:getFrameIndex('ht\_b') ) sendHeartDisabled.x, sendHeartDisabled.y = 500, offset+50 sendHeartDisabled.isVisible = false rankScroll:insert( sendHeartDisabled ) -- 친구가 하트받기 막아놓았는 지? local iconOff = newImage( uiSheet, uiSheetInfo:getFrameIndex('ht\_f') ) iconOff.x, iconOff.y = sendHeartDisabled.x+22, sendHeartDisabled.y+22 iconOff.isVisible = false rankScroll:insert( iconOff ) sendHeartDisabled.iconOff = iconOff -- 남은 시간 영역 local remainPanel = newImage( uiSheet, uiSheetInfo:getFrameIndex('banner\_b') ) remainPanel.x, remainPanel.y = sendHeartDisabled.x, sendHeartDisabled.y+22 remainPanel.isVisible = false rankScroll:insert( remainPanel ) sendHeartDisabled.remainPanel = remainPanel -- 남은 시간 TEXT local remainTimeText = disp.newText( '4시간', 0,0, DEF\_FONT, 16 ) remainTimeText.x, remainTimeText.y = sendHeartDisabled.x, sendHeartDisabled.y+20 remainTimeText.isVisible = false rankScroll:insert( remainTimeText ) sendHeartDisabled.remainTimeText = remainTimeText -- for use of timer loop friendHeartTimeTextList[fr\_idx] = remainTimeText if gameFriends[i].block\_heart \> 0 then -- 막혀있음 sendHeartDisabled.alpha = 0.7 sendHeartDisabled.isVisible = true iconOff.isVisible = true remainPanel.isVisible = false else -- 열려있음 iconOff.isVisible = false if checkHeartSendTime( fr\_idx ) then -- 보낼 수 있음. sendHeart.isVisible = true sendHeartDisabled.isVisible = false remainPanel.isVisible = false remainTimeText.isVisible = false else -- 시간 남음 sendHeart.isVisible = false sendHeartDisabled.isVisible = true remainPanel.isVisible = true remainTimeText.isVisible = true end end else -- \*\*\*\*\*\*\*\*\*\*\*\*\*\*\* 자기 자신 \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* -- 터치 후 액션 핸들러 local receiveStateOn local receiveStateOff -- network response listener local function \_changeBlockState( res ) userInfo.block\_heart = tonumber(res.block\_heart) local blocked = userInfo.block\_heart \> 0 receiveStateOn.isVisible = not blocked receiveStateOff.isVisible = blocked end -- touch event local function toggleHeartBlock() local blockState = userInfo.block\_heart \> 0 and 0 or 1 local post = {block\_state=blockState} net:post( '/shop/toggleHeartBlock', post, \_changeBlockState ) end -- Buttons receiveStateOn = util.makeButton( uiGroup, uiSheet, uiSheetInfo, 500, offset + 50, { offImg = 'ht\_a', onTouch = toggleHeartBlock, }) rankScroll:insert( receiveStateOn ) local icon = newImage( receiveStateOn, uiSheet, uiSheetInfo:getFrameIndex('ht\_e') ) icon.x, icon.y = receiveStateOn.x+22, receiveStateOn.y+22 receiveStateOff = util.makeButton( uiGroup, uiSheet, uiSheetInfo, 500, offset + 50, { offImg = 'ht\_a', onTouch = toggleHeartBlock, }) rankScroll:insert( receiveStateOff ) local icon = newImage( receiveStateOff, uiSheet, uiSheetInfo:getFrameIndex('ht\_f') ) icon.x, icon.y = receiveStateOn.x+22, receiveStateOn.y+22 local blocked = userInfo.block\_heart \> 0 receiveStateOn.isVisible = not blocked receiveStateOff.isVisible = blocked -- 나의 현재 랭킹 저장 if userInfo.week\_point \> 0 then userInfo.curRanking = i else userInfo.curRanking = -1 end end end rankGroup:insert( rankScroll ) -- auto scroll to my ranking print('AUTO SCROLL:', myRankScrollPosition) if myRankScrollPosition \> 480 - (rowHeight+2) then rankScroll:scrollToPosition { x = 0, y = - (myRankScrollPosition - (rowHeight+2)\*4) - 32, time = 500 } end local frame = disp.newImageRect( rankGroup, 'img/ui/mid\_d.png', 608, 628) frame.x, frame.y = 320, 370 rankGroup:setReferencePoint(disp.TopCenterReferencePoint) -- 주간순위 local rankText = newImage( rankGroup, uiSheet, uiSheetInfo:getFrameIndex('mid\_a') ) rankText.x, rankText.y = 225, 100 -- 남은 시간 타이머 local rankExpirePanel = newImage( rankGroup, uiSheet, uiSheetInfo:getFrameIndex('mid\_b') ) rankExpirePanel.x, rankExpirePanel.y = 510, 112 local rankExpireTextShadow = disp.newText( rankGroup, '-', 0, 0, DEF\_FONT, 20 ) rankExpireTextShadow:setTextColor(0,0,0) rankExpireTextShadow.alpha = 0.4 rankExpireText = disp.newText( rankGroup, '-', 0, 0, DEF\_FONT, 20 ) rankExpireText:setTextColor(255,255,255) rankExpireText.shadow = rankExpireTextShadow \_updateRankResetTimer() rankResetTimer = timer.performWithDelay(5000, \_updateRankResetTimer, 0) rankExpireText:setReferencePoint(disp.CenterLeftReferencePoint) rankExpireText.shadow:setReferencePoint(disp.CenterLeftReferencePoint) rankExpireText.x, rankExpireText.y = 435, 112 rankExpireText.shadow.x, rankExpireText.shadow.y = 435, 114 rankGroup.x, rankGroup.y = SCX, 80 -- 프로필 이미지 다운로드 if #thumbs \> 0 then thumbDownload() end end

This occurs above 1082 (not exact) corona version when execute “scrollView:insert( someChild )”

This occurs above 1082 (not exact) corona version when execute “scrollView:insert( someChild )”