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

Running error in Idea #14

Open
zikolach opened this issue Jan 21, 2015 · 2 comments
Open

Running error in Idea #14

zikolach opened this issue Jan 21, 2015 · 2 comments

Comments

@zikolach
Copy link

First time project runs perfect. After removing something (e.g. call of fill method on SEditText), re-running app, reverting changes and running again I'm getting following error:

01-21 13:14:39.952    1447-1447/scaloid.example E/AndroidRuntime﹕ FATAL EXCEPTION: main
    java.lang.NoSuchMethodError: org.scaloid.common.SEditText.fill
            at scaloid.example.HelloScaloid$$anonfun$2$$anon$1.<init>(HelloScaloid.scala:22)
            at scaloid.example.HelloScaloid$$anonfun$2.apply(HelloScaloid.scala:9)
            at scaloid.example.HelloScaloid$$anonfun$2.apply(HelloScaloid.scala:9)
            at org.scaloid.common.SActivity$$anonfun$onCreate$1.apply(app.scala:130)
            at org.scaloid.common.SActivity$$anonfun$onCreate$1.apply(app.scala:130)
            at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
            at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
            at org.scaloid.common.SActivity$class.onCreate(app.scala:130)
            at scaloid.example.HelloScaloid.onCreate(HelloScaloid.scala:6)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
            at android.app.ActivityThread.access$1500(ActivityThread.java:117)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:130)
            at android.app.ActivityThread.main(ActivityThread.java:3683)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:507)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
            at dalvik.system.NativeStart.main(Native Method)

To workaround this I added one more "before launch" line to run configuration with sbt clean task. "sbt ~run" from the console works correctly.

@danhper
Copy link

danhper commented Aug 1, 2015

I am having the same issue. Impossible to use ~run as when I use a method that was not used during the build where proguard ran, I get a NoSuchMethodError.

@pocorall
Copy link
Owner

pocorall commented Jan 7, 2016

That's because the proguard cache doesn't have fill method when it is re-appeared. Clean rebuild could solve this, but it takes too long, as you know. Instead, run sbt command android:package as 'before launch' configuration. It will reconstruct proguard cache without recompiling entire project.

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