Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[fix] fat-aar getMergedInputResourceSets #93

@huangjunkun

Description

@huangjunkun

def endIndex = aarPath.indexOf('/build/')

// Bugfix: 防止目录地址的startIndex 前面包含/build/目录,所以从startIndex开始查找!
def endIndex = aarPath.indexOf('/build/', startIndex)
否则:
resname = aarPath.substring(startIndex, endIndex).replace('/', ':')

Cause:
java.lang.StringIndexOutOfBoundsException: String index out of range: xxx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions