-
Notifications
You must be signed in to change notification settings - Fork 163
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
Event gravity does not take parameters or application crashs #136
Comments
An error on using this code: val tmp = new SVerticalLayout { 08-26 09:38:56.520 6836-6836/de.intelligyscience E/AndroidRuntime﹕ FATAL EXCEPTION: main |
Sorry this is the correct Exception 08-26 09:41:41.721 6893-6893/de.intelligyscience E/AndroidRuntime﹕ FATAL EXCEPTION: main |
Try clean rebuild. If it doesn't help, your build configuration of the plugin have some problem. |
Hello, Thank you for the very handy framework you are providing! 09-04 09:12:03.258 7173-7173/scaloid.example E/AndroidRuntime﹕ FATAL EXCEPTION: main |
I don't know if it is related or may help to find a solution, but i also have a plenty of this kind of warnings: 09-04 09:46:40.268 7621-7621/scaloid.example I/dalvikvm﹕ Could not find method org.scaloid.common.TraitContext$class.startService, referenced from method e_consult.activities.EConsult.startService |
Hello again,
Where the maximum is 65536. In order to solve this problem, multidex file support must be enabled. In short, what you must do is adding the multidex library dependency to your project build.sbt and enable multidex: libraryDependencies += "com.android.support" % "multidex" % "1.0.0"
dexMulti in Android := true and add a android:name line to your androidmanifest.xml file: <application android:label="@string/app_name"
android:name="android.support.multidex.MultiDexApplication">
...
</application> I hope it helps. |
I encountered problems again on other elements. It seems that proguard cache prevents the proper multidex generation, so i commented the line: proguardCache in Android ++= Seq("org.scaloid") and for now it seems to work. |
Great, thanks! Although android-sdk-plugin is a great project I think, documentation is not so friendly. It often can be a barrier for newcomers. It would be much better if someone contribute a good tutorial. How about you, @AntoineMorand? |
It is a good idea, even if I am no specialist, i could give it a try when I find time. |
Hi
I want create a Layout. Using the converter I get this code:
contentView = new SVerticalLayout {
STextView("Large Text").<<.wrap.gravity(Gravity.CENTER_HORIZONTAL).>>.textAppearance(android.R.attr.textAppearanceLarge)
this += new SLinearLayout {}.visibility(View.VISIBLE).orientation(LinearLayout.HORIZONTAL)
SButton("New Button").<<.wrap.gravity(Gravity.CENTER_HORIZONTAL).>>
SButton("New Button").<<.wrap.gravity(Gravity.CENTER_HORIZONTAL).>>
SButton("New Button").<<.wrap.gravity(Gravity.CENTER_HORIZONTAL).>>
}.<<.fill.>>
but with this code I get this error
Int does not take parameters
[error] SButton("New Button").<<.wrap.gravity(Gravity.CENTER_HORIZONTAL).>>
If I change it to this
contentView = new SVerticalLayout { STextView("Large Text") textSize 24.dip this += new SLinearLayout{}.fill }
The app crashs.
What is the problem?
Thank you
The text was updated successfully, but these errors were encountered: