I meet this issue on Ubuntu 18.04, the reason is that I add the follow prop 
in ~/.bashrc 

export ANDROID_JACK_EXTRA_ARGS="--verbose debug --sanity-checks on -D 
sched.runner=single-threaded"

remove ANDROID_JACK_EXTRA_ARGS and rebuild, problem solved.

On Thursday, June 21, 2018 at 12:50:06 AM UTC+8 Paulo wrote:

> I followed your suggestion but running make now stops jack-admin 
> start-server from running. The actual steps I did were: 
>
> jack-admin kill-server
> jack-admin uninstall-server
> rm -rf ~/.jack-server
> rm ~/.jack-settings
> make clean
> . build/envsetup.sh
> lunch 12
> make -j4
>
> However, this resulted in jack server not being able to run. So what I did 
> was 'chmod -R 700 ~/.jack-server' and the server now runs, however I'm 
> stuck again in the same spot as before. 
>
> On Tuesday, June 19, 2018 at 1:42:10 PM UTC-7, Colin Cross wrote:
>>
>> Try:
>> jack-admin kill-server
>> jack-admin uninstall-server
>> rm -rf ~/.jack-server
>> rm ~/.jack-settings
>>
>> On Tue, Jun 19, 2018 at 1:01 PM Paulo <[email protected]> wrote:
>>
>>> Hi all, 
>>>
>>> I'm trying to build android O image but it keeps on failing. I've pasted 
>>> below the part where it fails. I've run each line of the commands and the 
>>> part I highlighted yellow is where it actually fails. I'm new to aosp and 
>>> any help is highly appreciated.
>>>
>>> [  3% 2016/51239] build 
>>> out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jack
>>> FAILED: 
>>> out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jack 
>>> /bin/bash -c "(mkdir -p 
>>> out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jack.tmpjill.res
>>>  
>>> ) && (unzip -qo prebuilts/sdk/9/android.jar -d 
>>> out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jack.tmpjill.res
>>>  
>>> ) && (find 
>>> out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jack.tmpjill.res
>>>  
>>> -iname \"*.class\" -delete ) && (JACK_VERSION=4.31.CANDIDATE 
>>> out/host/linux-x86/bin/jack --verbose debug --sanity-checks on -D 
>>> sched.runner=single-threaded    -D jack.import.resource.policy=keep-first 
>>> -D jack.import.type.policy=keep-first -D jack.android.min-api-level=9 
>>> --import prebuilts/sdk/9/android.jar --import-resource 
>>> out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jack.tmpjill.res
>>>  
>>> --output-jack 
>>> out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jack ) 
>>> && (rm -rf 
>>> out/target/common/obj/JAVA_LIBRARIES/sdk_v9_intermediates/classes.jack.tmpjill.res
>>>  
>>> )"
>>> java.lang.RuntimeException: 
>>> com.android.sched.util.config.ConfigurationError: Configuration has not 
>>> been initialized
>>> at 
>>> com.android.sched.util.config.ReflectDefaultCtorFactory.create(ReflectDefaultCtorFactory.java:76)
>>> at 
>>> com.android.sched.util.codec.ImplementationSelector.parseString(ImplementationSelector.java:71)
>>> at 
>>> com.android.sched.util.config.id.PropertyId$IValueCheckedString.getValueObject(PropertyId.java:303)
>>> at 
>>> com.android.sched.util.config.id.PropertyId$Value.getObject(PropertyId.java:209)
>>> at com.android.sched.util.config.ConfigImpl.get(ConfigImpl.java:91)
>>> at com.android.sched.util.config.ConfigDebug.get(ConfigDebug.java:79)
>>> at com.android.jack.Options.checkValidity(Options.java:1311)
>>> at com.android.jack.Jack.check(Jack.java:498)
>>> at com.android.jack.Jack.checkAndRun(Jack.java:459)
>>> at com.android.jack.CommandLine.runJack(CommandLine.java:83)
>>> at 
>>> com.android.jack.api.v01.impl.Cli01CompilationTaskImpl.run(Cli01CompilationTaskImpl.java:102)
>>> at com.android.jack.server.tasks.JackTask.handle(JackTask.java:188)
>>> at 
>>> com.android.jack.server.tasks.SynchronousServiceTask.handle(SynchronousServiceTask.java:49)
>>> at 
>>> com.android.jack.server.tasks.JackTaskBase64Out.handle(JackTaskBase64Out.java:35)
>>> at 
>>> com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:86)
>>> at 
>>> com.android.jack.server.router.PartParserRouter.handle(PartParserRouter.java:95)
>>> at com.android.jack.server.router.PathRouter.handle(PathRouter.java:68)
>>> at 
>>> com.android.jack.server.router.ContentTypeParameterRouter.handle(ContentTypeParameterRouter.java:88)
>>> at 
>>> com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:86)
>>> at 
>>> com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:86)
>>> at 
>>> com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:86)
>>> at 
>>> com.android.jack.server.router.ContentTypeParameterRouter.handle(ContentTypeParameterRouter.java:88)
>>> at 
>>> com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:86)
>>> at 
>>> com.android.jack.server.router.MethodRouter.handle(MethodRouter.java:69)
>>> at 
>>> com.android.jack.server.router.RootContainer.handle(RootContainer.java:51)
>>> at 
>>> org.simpleframework.http.core.RequestDispatcher.dispatch(RequestDispatcher.java:121)
>>> at 
>>> org.simpleframework.http.core.RequestDispatcher.run(RequestDispatcher.java:103)
>>> at 
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>>> at 
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>>> at java.lang.Thread.run(Thread.java:748)
>>> Caused by: com.android.sched.util.config.ConfigurationError: 
>>> Configuration has not been initialized
>>> at 
>>> com.android.sched.util.config.UninitializedConfig.getObjectIfAny(UninitializedConfig.java:69)
>>> at 
>>> com.android.sched.util.config.ThreadConfig.updateStatistic(ThreadConfig.java:68)
>>> at com.android.sched.util.config.ThreadConfig.get(ThreadConfig.java:54)
>>> at 
>>> com.android.jack.reporting.CommonReporter.<init>(CommonReporter.java:53)
>>> at 
>>> com.android.jack.reporting.DefaultReporter.<init>(DefaultReporter.java:35)
>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>> at 
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>>> at 
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>>> at 
>>> com.android.sched.util.config.ReflectDefaultCtorFactory.create(ReflectDefaultCtorFactory.java:68)
>>> ... 29 more
>>>
>>> Internal compiler error (version 1.3-rc6 'Douarn' (441800 
>>> 22a11d4b264ae70e366aed3025ef47362d1522bb by [email protected])).
>>> com.android.sched.util.config.ConfigurationError: Configuration has not 
>>> been initialized.
>>> Warning: This may have produced partial or corrupted output.
>>> ninja: build stopped: subcommand failed.
>>> 11:52:00 ninja failed with: exit status 1
>>> build/core/main.mk:21: recipe for target 'run_soong_ui' failed
>>> make[1]: *** [run_soong_ui] Error 1
>>>
>>> -- 
>>> -- 
>>> You received this message because you are subscribed to the "Android 
>>> Building" mailing list.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-building?hl=en
>>>
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Android Building" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/10046d33-dd7c-4848-8c17-59688411ea59n%40googlegroups.com.

Reply via email to