Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] fat-aar getMergedInputResourceSets #93

Open
huangjunkun opened this issue Oct 18, 2019 · 0 comments
Open

[fix] fat-aar getMergedInputResourceSets #93

huangjunkun opened this issue Oct 18, 2019 · 0 comments

Comments

@huangjunkun
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant