pastebin

Paste Search Dynamic
Recent pastes
Kotlin illegal reflection when
  1. WARNING: An illegal reflective access operation has occurred
  2. WARNING: Illegal reflective access by org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreApplicationEnvironment (file:/aosp/soong/host/linux-x86/framework/metalava.jar) to field java.lang.reflect.Field.modifiers
  3. WARNING: Please consider reporting this to the maintainers of org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreApplicationEnvironment
  4. WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
  5. WARNING: All illegal access operations will be denied in a future release
  6. Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
  7.     at java.base/java.util.LinkedHashMap$LinkedKeySet.iterator(LinkedHashMap.java:543)
  8.     at java.base/java.util.HashSet.iterator(HashSet.java:173)
  9.     at kotlin.collections.CollectionsKt___CollectionsKt.toList(_Collections.kt:1220)
  10.     at kotlin.collections.ArraysKt___ArraysKt.distinct(_Arrays.kt:9836)
  11.     at com.android.tools.metalava.model.psi.PsiModifierItem$Companion.create(PsiModifierItem.kt:188)
  12.     at com.android.tools.metalava.model.psi.PsiModifierItem$Companion.create(PsiModifierItem.kt:58)
  13.     at com.android.tools.metalava.model.psi.PsiItem$Companion.modifiers(PsiItem.kt:264)
  14.     at com.android.tools.metalava.model.psi.PsiMethodItem$Companion.create(PsiMethodItem.kt:355)
  15.     at com.android.tools.metalava.model.psi.PsiClassItem$Companion.create(PsiClassItem.kt:466)
  16.     at com.android.tools.metalava.model.psi.PsiBasedCodebase.createClass(PsiBasedCodebase.kt:441)
  17.     at com.android.tools.metalava.model.psi.PsiBasedCodebase.findOrCreateClass(PsiBasedCodebase.kt:559)
  18.     at com.android.tools.metalava.model.psi.PsiClassItem$Companion$create$result$1.invoke(PsiClassItem.kt:534)
  19.     at com.android.tools.metalava.model.psi.PsiClassItem$Companion$create$result$1.invoke(PsiClassItem.kt:391)
  20.     at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:172)
  21.     at kotlin.sequences.SequencesKt___SequencesKt.toCollection(_Sequences.kt:716)
  22.     at kotlin.sequences.SequencesKt___SequencesKt.toMutableList(_Sequences.kt:746)
  23.     at com.android.tools.metalava.model.psi.PsiClassItem$Companion.create(PsiClassItem.kt:538)
  24.     at com.android.tools.metalava.model.psi.PsiBasedCodebase.createClass(PsiBasedCodebase.kt:441)
  25.     at com.android.tools.metalava.model.psi.PsiBasedCodebase.initialize(PsiBasedCodebase.kt:180)
  26.     at com.android.tools.metalava.Driver.parseSources(Driver.kt:876)
  27.     at com.android.tools.metalava.Driver.parseSources$default(Driver.kt:847)
  28.     at com.android.tools.metalava.Driver.loadFromSources(Driver.kt:773)
  29.     at com.android.tools.metalava.Driver.processFlags(Driver.kt:182)
  30.     at com.android.tools.metalava.Driver.run(Driver.kt:115)
  31.     at com.android.tools.metalava.Driver.run$default(Driver.kt:98)
  32.     at com.android.tools.metalava.Driver.main(Driver.kt:86)
  33. 12:35:03 ninja failed with: exit status 1
  34.  
  35.  
  36. Following the AOSP environment instructions and build instructions, and have re-installed everything several times.  Same problem with the latest version of Ubuntu and the LTS 14.04 version.   Also with the aosp_arm64-eng target as well.
  37.  
Parsed in 0.009 seconds