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

Problems with scala-compiler #52

Open
algobardo opened this issue Feb 18, 2015 · 0 comments
Open

Problems with scala-compiler #52

algobardo opened this issue Feb 18, 2015 · 0 comments
Labels

Comments

@algobardo
Copy link

Hi, i'm trying to use the interpreter from the scala-compiler library in one of my projects.
I started from one of your samples, and i manage to compile everything correctly.
However, when i test at runtime i got

D/AndroidRuntime( 2615): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 2615): CheckJNI is ON
E/memtrack( 2615): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug( 2615): failed to load memtrack module: -2
D/AndroidRuntime( 2615): Calling main entry com.android.commands.am.Am
I/ActivityManager( 1226): Force stopping jp.leafytree.android.hello appid=10057 user=0: start instr
I/ActivityManager( 1226): Start proc jp.leafytree.android.hello for added application jp.leafytree.android.hello: pid=2626 uid=10057 gids={50057, 9997} abi=x86
I/art     ( 2626): Not late-enabling -Xcheck:jni (already on)
I/MultiDex( 2626): VM with version 2.1.0 has multidex support
I/MultiDex( 2626): install
I/MultiDex( 2626): VM has multidex support, MultiDex support library is disabled.
I/MultiDex( 2626): install
I/MultiDex( 2626): VM has multidex support, MultiDex support library is disabled.
I/art     ( 2626): Rejecting re-init on previously-failed class java.lang.Class<scala.beans.ScalaBeanInfo>
I/art     ( 2626): Rejecting re-init on previously-failed class java.lang.Class<scala.beans.ScalaBeanInfo>
W/ClassPathPackageInfoSource( 2626): Cannot load class. Make sure it is in your apk. Class name: 'scala.beans.ScalaBeanInfo'. Message: scala.beans.ScalaBeanInfo
W/ClassPathPackageInfoSource( 2626): java.lang.ClassNotFoundException: scala.beans.ScalaBeanInfo
W/ClassPathPackageInfoSource( 2626):    at java.lang.Class.classForName(Native Method)
W/ClassPathPackageInfoSource( 2626):    at java.lang.Class.forName(Class.java:308)
W/ClassPathPackageInfoSource( 2626):    at android.test.ClassPathPackageInfoSource.createPackageInfo(ClassPathPackageInfoSource.java:88)
W/ClassPathPackageInfoSource( 2626):    at android.test.ClassPathPackageInfoSource.access$000(ClassPathPackageInfoSource.java:39)
W/ClassPathPackageInfoSource( 2626):    at android.test.ClassPathPackageInfoSource$1.load(ClassPathPackageInfoSource.java:50)
W/ClassPathPackageInfoSource( 2626):    at android.test.ClassPathPackageInfoSource$1.load(ClassPathPackageInfoSource.java:47)
W/ClassPathPackageInfoSource( 2626):    at android.test.SimpleCache.get(SimpleCache.java:31)
W/ClassPathPackageInfoSource( 2626):    at android.test.ClassPathPackageInfoSource.getPackageInfo(ClassPathPackageInfoSource.java:72)
W/ClassPathPackageInfoSource( 2626):    at android.test.ClassPathPackageInfo.getSubpackages(ClassPathPackageInfo.java:48)
W/ClassPathPackageInfoSource( 2626):    at android.test.ClassPathPackageInfo.addTopLevelClassesTo(ClassPathPackageInfo.java:61)
W/ClassPathPackageInfoSource( 2626):    at android.test.ClassPathPackageInfo.getTopLevelClassesRecursive(ClassPathPackageInfo.java:55)
W/ClassPathPackageInfoSource( 2626):    at android.test.suitebuilder.TestGrouping.testCaseClassesInPackage(TestGrouping.java:156)
W/ClassPathPackageInfoSource( 2626):    at android.test.suitebuilder.TestGrouping.addPackagesRecursive(TestGrouping.java:117)
W/ClassPathPackageInfoSource( 2626):    at android.test.suitebuilder.TestSuiteBuilder.includePackages(TestSuiteBuilder.java:100)
W/ClassPathPackageInfoSource( 2626):    at android.test.InstrumentationTestRunner.onCreate(InstrumentationTestRunner.java:367)
W/ClassPathPackageInfoSource( 2626):    at com.android.test.runner.MultiDexTestRunner.onCreate(MultiDexTestRunner.java:31)
W/ClassPathPackageInfoSource( 2626):    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4509)
W/ClassPathPackageInfoSource( 2626):    at android.app.ActivityThread.access$1500(ActivityThread.java:144)
W/ClassPathPackageInfoSource( 2626):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)
W/ClassPathPackageInfoSource( 2626):    at android.os.Handler.dispatchMessage(Handler.java:102)
W/ClassPathPackageInfoSource( 2626):    at android.os.Looper.loop(Looper.java:135)
W/ClassPathPackageInfoSource( 2626):    at android.app.ActivityThread.main(ActivityThread.java:5221)
W/ClassPathPackageInfoSource( 2626):    at java.lang.reflect.Method.invoke(Native Method)
W/ClassPathPackageInfoSource( 2626):    at java.lang.reflect.Method.invoke(Method.java:372)
W/ClassPathPackageInfoSource( 2626):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
W/ClassPathPackageInfoSource( 2626):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
W/ClassPathPackageInfoSource( 2626): Caused by: java.lang.ClassNotFoundException: Didn't find class "scala.beans.ScalaBeanInfo" on path: DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/data/app/jp.leafytree.android.hello.test-1/base.apk", zip file "/data/app/jp.leafytree.android.hello-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
W/ClassPathPackageInfoSource( 2626):    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
W/ClassPathPackageInfoSource( 2626):    at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
W/ClassPathPackageInfoSource( 2626):    at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
W/ClassPathPackageInfoSource( 2626):    ... 26 more
W/ClassPathPackageInfoSource( 2626):    Suppressed: java.lang.NoClassDefFoundError: scala.beans.ScalaBeanInfo
W/ClassPathPackageInfoSource( 2626):        at dalvik.system.DexFile.defineClassNative(Native Method)
W/ClassPathPackageInfoSource( 2626):        at dalvik.system.DexFile.defineClass(DexFile.java:226)
W/ClassPathPackageInfoSource( 2626):        at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
W/ClassPathPackageInfoSource( 2626):        at dalvik.system.DexPathList.findClass(DexPathList.java:321)
W/ClassPathPackageInfoSource( 2626):        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
W/ClassPathPackageInfoSource( 2626):        ... 28 more
W/ClassPathPackageInfoSource( 2626):    Suppressed: java.lang.ClassNotFoundException: scala.beans.ScalaBeanInfo
W/ClassPathPackageInfoSource( 2626):        at java.lang.Class.classForName(Native Method)
W/ClassPathPackageInfoSource( 2626):        at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
W/ClassPathPackageInfoSource( 2626):        at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
W/ClassPathPackageInfoSource( 2626):        at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
W/ClassPathPackageInfoSource( 2626):        ... 27 more

If you want to try out the repo is

https://github.com/algobardo/ATR

just clone and type

gradle connectedAndroidTest
@saturday06 saturday06 added the bug label May 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants