|
【Android】
ROC-RK3568-PC最新安卓11源码编译错误
发表于 2021-8-1 09:12:53
浏览:16235
|
回复:12
打印
只看该作者
[复制链接]
楼主
其他都按维基上做了,出现以下错误是什么原因呢?谢谢
[ 96% 100944/105018] //frameworks/base:api-stubs-docs metalava merged [common]
......
lint_report.txt --lints-as-errors --warnings-as-errors --baseline:api-lint frameworks/base/api/lint-baseline.txt --update-baseline:api-lint out
/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/api_lint_baseline.txt --error-message:api-lint $'************************************************************\nYour API changes are triggering API Lint warnings or errors.\nTo make these errors go away, fix the code according to the\nerror and/or warning messages above.\n\nIf it is not possible to do so, there are workarounds:\n\n1. You can suppress the errors with @SuppressLint("<id>")\n2. You can update the baseline by executing the following\n command:\n cp \\\n "'"$PWD"$'/out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/api_lint_baseline.txt" \\\n "'"$PWD"$'/frameworks/base/api/lint-baseline.txt"\n To submit the revised baseline.txt to the main Android\n repository, you will need approval.\n************************************************************\n' --check-compatibility:api:released prebuilts/sdk/30/public/api/android.txt --check-compatibility:removed:released prebuilts/sdk/30/public/api/removed.txt --baseline:compatibility:released out/soong/.intermediates/prebuilts/sdk/public-api-incompatibilities-with-last-released/gen/incompatibilities.txt --update-baseline:compatibility:released out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/last_released_baseline.txt --error-message:compatibility:released $'\n******************************\nYou have tried to change the API from what has been previously released in\nan SDK. Please fix the errors listed above.\n******************************\n' && out/soong/host/linux-x86/bin/soong_zip -write_if_changed -jar -o out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/api-stubs-docs-stubs.srcjar -C out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/stubsDir -D out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/stubsDir && touch out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/api_lint.timestamp && touch out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/check_last_released_api.timestamp && rm -rf out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/srcjars
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at com.intellij.util.containers.ContainerUtil.newHashMap(ContainerUtil.java:33)
at com.intellij.openapi.util.UnprotectedUserDataHolder.putUserData(UnprotectedUserDataHolder.java:32)
at com.intellij.lang.impl.PsiBuilderImpl.putUserData(PsiBuilderImpl.java:1738)
at com.intellij.lang.java.parser.JavaParserUtil.setLanguageLevel(JavaParserUtil.java:114)
at com.intellij.lang.java.parser.JavaParserUtil.createBuilder(JavaParserUtil.java:153)
at com.intellij.psi.impl.source.tree.JavaElementType$ICodeBlockElementType.parseContents(JavaElementType.java:154)
at com.intellij.psi.impl.source.tree.LazyParseableElement.lambda$ensureParsed$0(LazyParseableElement.java:206)
at com.intellij.psi.impl.source.tree.LazyParseableElement$$Lambda$213/0x0000000100506440.run(Unknown Source)
at com.intellij.psi.impl.DebugUtil.performPsiModification(DebugUtil.java:553)
at com.intellij.psi.impl.source.tree.LazyParseableElement.ensureParsed(LazyParseableElement.java:205)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:254)
at com.intellij.psi.impl.source.tree.LazyParseablePsiElement.getFirstChild(LazyParseablePsiElement.java:90)
at com.intellij.psi.impl.source.tree.LazyParseablePsiElement.acceptChildren(LazyParseablePsiElement.java:104)
at com.intellij.psi.JavaRecursiveElementVisitor.visitElement(JavaRecursiveElementVisitor.java:43)
at com.intellij.psi.JavaElementVisitor.visitCodeBlock(JavaElementVisitor.java:52)
at com.intellij.psi.impl.source.tree.java.PsiCodeBlockImpl.accept(PsiCodeBlockImpl.java:212)
at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:200)
at com.intellij.psi.impl.source.JavaStubPsiElement.acceptChildren(JavaStubPsiElement.java:117)
at com.intellij.psi.JavaRecursiveElementVisitor.visitElement(JavaRecursiveElementVisitor.java:43)
at com.intellij.psi.JavaElementVisitor.visitMethod(JavaElementVisitor.java:164)
at com.intellij.psi.impl.source.PsiMethodImpl.accept(PsiMethodImpl.java:286)
at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:200)
at com.intellij.psi.impl.source.JavaStubPsiElement.acceptChildren(JavaStubPsiElement.java:117)
at com.intellij.psi.JavaRecursiveElementVisitor.visitElement(JavaRecursiveElementVisitor.java:43)
at com.intellij.psi.JavaElementVisitor.visitClass(JavaElementVisitor.java:40)
at com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:469)
at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:200)
at com.intellij.psi.impl.source.JavaStubPsiElement.acceptChildren(JavaStubPsiElement.java:117)
at com.intellij.psi.JavaRecursiveElementVisitor.visitElement(JavaRecursiveElementVisitor.java:43)
at com.intellij.psi.JavaElementVisitor.visitClass(JavaElementVisitor.java:40)
at com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:469)
at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:200)
01:14:52 ninja failed with: exit status 1
#### failed to build some targets (16:29:45 (hh:mm:ss)) ####
|
|