标题: ITX-3568Q安卓版SDK编译报错 [打印本页] 作者: fhuang2020 时间: 2022-8-11 19:53 标题: ITX-3568Q安卓版SDK编译报错 网盘下载的SDK第一次编译就报错:
**********************************\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 gnu.trove.TIntArrayList.<init>(TIntArrayList.java:61)
at com.intellij.lang.impl.MarkerProduction.<init>(MarkerProduction.java:35)
at com.intellij.lang.impl.PsiBuilderImpl.<init>(PsiBuilderImpl.java:92)
at com.intellij.lang.impl.PsiBuilderImpl.<init>(PsiBuilderImpl.java:115)
at com.intellij.lang.impl.PsiBuilderFactoryImpl.createBuilder(PsiBuilderFactoryImpl.java:37)
at com.intellij.lang.java.parser.JavaParserUtil.createBuilder(JavaParserUtil.java:152)
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.CompositePsiElement.acceptChildren(CompositePsiElement.java:81)
at com.intellij.psi.JavaRecursiveElementVisitor.visitElement(JavaRecursiveElementVisitor.java:43)
at com.intellij.psi.JavaElementVisitor.visitStatement(JavaElementVisitor.java:259)
at com.intellij.psi.JavaElementVisitor.visitBlockStatement(JavaElementVisitor.java:32)
at com.intellij.psi.impl.source.tree.java.PsiBlockStatementImpl.accept(PsiBlockStatementImpl.java:67)
at com.intellij.psi.impl.source.tree.CompositePsiElement.acceptChildren(CompositePsiElement.java:81)
at com.intellij.psi.JavaRecursiveElementVisitor.visitElement(JavaRecursiveElementVisitor.java:43)
at com.intellij.psi.JavaElementVisitor.visitStatement(JavaElementVisitor.java:259)
at com.intellij.psi.JavaElementVisitor.visitIfStatement(JavaElementVisitor.java:120)
at com.intellij.psi.impl.source.tree.java.PsiIfStatementImpl.accept(PsiIfStatementImpl.java:189)
at com.intellij.psi.impl.source.tree.LazyParseablePsiElement.acceptChildren(LazyParseablePsiElement.java:106)
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.CompositePsiElement.acceptChildren(CompositePsiElement.java:81)
21:42:03 ninja failed with: exit status 1