Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android如何使用,会报错啊 #29

Closed
wudaotiantian opened this issue Aug 14, 2017 · 7 comments
Closed

android如何使用,会报错啊 #29

wudaotiantian opened this issue Aug 14, 2017 · 7 comments
Milestone

Comments

@wudaotiantian
Copy link

No description provided.

@killme2008
Copy link
Owner

请告知具体的错误信息。

@wudaotiantian
Copy link
Author

08-14 17:28:46.224 12932-12932/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.myapplication, PID: 12932
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapplication/com.example.myapplication.MainActivity}: com.googlecode.aviator.exception.CompileExpressionErrorException: define class error
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
at dalvik.system.NativeStart.main(Native Method)
Caused by: com.googlecode.aviator.exception.CompileExpressionErrorException: define class error
at com.googlecode.aviator.code.asm.ASMCodeGenerator.getResult(ASMCodeGenerator.java:678)
at com.googlecode.aviator.code.OptimizeCodeGenerator.getResult(OptimizeCodeGenerator.java:360)
at com.googlecode.aviator.parser.ExpressionParser.parse(ExpressionParser.java:702)
at com.googlecode.aviator.AviatorEvaluator.innerCompile(AviatorEvaluator.java:518)
at com.googlecode.aviator.AviatorEvaluator.compile(AviatorEvaluator.java:497)
at com.googlecode.aviator.AviatorEvaluator.execute(AviatorEvaluator.java:605)
at com.googlecode.aviator.AviatorEvaluator.execute(AviatorEvaluator.java:623)
at com.example.myapplication.MainActivity.onCreate(MainActivity.java:36)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) 
at android.app.ActivityThread.access$800(ActivityThread.java:135) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:136) 
at android.app.ActivityThread.main(ActivityThread.java:5001) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609) 
at dalvik.system.NativeStart.main(Native Method) 
Caused by: java.lang.UnsupportedOperationException: can't load this type of class file
at java.lang.ClassLoader.defineClass(ClassLoader.java:253)
at com.googlecode.aviator.parser.AviatorClassLoader.defineClass(AviatorClassLoader.java:35)
at com.googlecode.aviator.code.asm.ASMCodeGenerator.getResult(ASMCodeGenerator.java:673)
at com.googlecode.aviator.code.OptimizeCodeGenerator.getResult(OptimizeCodeGenerator.java:360) 
at com.googlecode.aviator.parser.ExpressionParser.parse(ExpressionParser.java:702) 
at com.googlecode.aviator.AviatorEvaluator.innerCompile(AviatorEvaluator.java:518) 
at com.googlecode.aviator.AviatorEvaluator.compile(AviatorEvaluator.java:497) 
at com.googlecode.aviator.AviatorEvaluator.execute(AviatorEvaluator.java:605) 
at com.googlecode.aviator.AviatorEvaluator.execute(AviatorEvaluator.java:623) 
at com.example.myapplication.MainActivity.onCreate(MainActivity.java:36) 
at android.app.Activity.performCreate(Activity.java:5231) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) 
at android.app.ActivityThread.access$800(ActivityThread.java:135) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:136) 
at android.app.ActivityThread.main(ActivityThread.java:5001) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:515) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609) 
at dalvik.system.NativeStart.main(Native Method) 
08-14 17:28:55.908 478-492/system_process E/WindowManager: Starting window AppWindowToken{52c36060 token=Token{5293cd08 ActivityRecord{529f1f2c u0 com.example.myapplication/.MainActivity t32}}} timed out
08-14 17:29:26.704 1248-13077/com.estrongs.android.pop E/Cataloger: syncFile:/storage/emulated/0/Android/data/com.tencent.news/files/onlinelog/pushProcess_2017.08.14.txt
08-14 17:32:33.064 1248-13582/com.estrongs.android.pop E/Cataloger: syncFile:/storage/emulated/0/Android/data/com.tencent.news/files/onlinelog/pushProcess_2017.08.14.txt

@killme2008
Copy link
Owner

sorry,我没有仔细看标题。不支持 android 的。

@wxb871127
Copy link

我晕 看完了开发文档 才发现不支持android ...

@killme2008
Copy link
Owner

准备在 android 下支持纯解释模型

@killme2008 killme2008 reopened this Mar 27, 2019
@killme2008 killme2008 added this to the 4.2.0 milestone Mar 29, 2019
@killme2008
Copy link
Owner

android 有 dexmaker,计划学习下,可能可以在 android 也支持编译成字节码 https://github.com/linkedin/dexmaker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants