java-aot

Failed to create oat file

馋奶兔 提交于 2019-12-11 08:42:03
问题 I develop an app that intent to Camera application to take picture and save it. but my problem is : sometimes after picture taken and my app called ,my application crashed( without onActivityResult() called ). my application use multidex and I can't remove it. also instant run is enable. this is my code : protected void onActivityResult(int requestCode, int resultCode, Intent intent) { if (requestCode == REQUEST_TAKE_PHOTO) { if (resultCode == RESULT_OK) { // if intent!= null and intent

Is Ahead-Of-Time compilation available in Java 9?

懵懂的女人 提交于 2019-11-29 07:37:57
As per JEP 295 AOT compilation of any JDK modules, classes, or of user code, is experimental and not supported in JDK 9. To use the AOTed java.base module, the user will have to compile the module and copy the resulting AOT library into the JDK installation directory or specify it on java command line. I am confused with the above statement, if AOT is not supported in JDK 9 then how can we compile the module using AOT? My second question is why AOT not supported in JDK 9 if it has many advantages over JIT? Its an Experimental feature. To answer the latter part first from your question. AOT is

Is Ahead-Of-Time compilation available in Java 9?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 01:14:10
问题 As per JEP 295 AOT compilation of any JDK modules, classes, or of user code, is experimental and not supported in JDK 9. To use the AOTed java.base module, the user will have to compile the module and copy the resulting AOT library into the JDK installation directory or specify it on java command line. I am confused with the above statement, if AOT is not supported in JDK 9 then how can we compile the module using AOT? My second question is why AOT not supported in JDK 9 if it has many