• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

pocorall/hello-scaloid-maven: A "Hello, world" of Scaloid for maven. ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

pocorall/hello-scaloid-maven

开源软件地址(OpenSource Url):

https://github.com/pocorall/hello-scaloid-maven

开源编程语言(OpenSource Language):

Scala 100.0%

开源软件介绍(OpenSource Introduction):

Hello Scaloid for maven

This is a template project that can be a starting point of a new Scaloid project.

This contains minimum code as possible; therefore easy to run, examine and extend.

Prerequisites

  • Maven 3.2 or above
  • Android SDK Level 16 or above
  • Level 16 is required for building, while this app retains runtime compatibility from API Level 10. Please refer to minSdkVersion property in AndroidManifest.xml

Build

You can build using Maven:

$ mvn clean package

This will compile the project and generate an APK. The generated APK is signed with the Android debug certificate. To generate a zip-aligned APK that is signed with an actual certificate, use:

$ mvn clean package -Prelease

The configuration for which certificate to use is in pom.xml.

Run

Deploy to an Android virtual device (AVD) and run:

$ mvn android:deploy android:run

Using an IDE

You can use Maven to generate project files for Eclipse or IDEA:

$ mvn eclipse:eclipse
$ mvn idea:idea

We do not recommend to use IDE's own Android build system, because proguard settings are complicated. Use Maven to build and deploy the project.

Troubleshooting

Error ANDROID-904-002: Found aidl files: Count = 0

The environment variable ANDROID_HOME is incorrect.

Is the build too slow?

This maven project works completely. But long build time would matter, which usually takes more than 40 seconds. We recommend to build your project with sbt, which enables incremental build. This usually takes only several seconds.

Further Reading

Origin

This project is forked from android-scala-test. Thanks rohansingh!




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap