安卓+斯卡拉+ preinstalled的Scala库+禁用的ProGuard抛出了ClassNotFoundException [英] android + scala + preinstalled scala libraries + disabled proguard throws ClassNotFoundException

查看:232
本文介绍了安卓+斯卡拉+ preinstalled的Scala库+禁用的ProGuard抛出了ClassNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这一壮举的最终目的:使用Android设备通过快速开发的编译,而不需要使用ProGuard的每一个单一的时间(这将导致巨大的延迟)

Final purpose of this feat: Use android device for development by fast compiling without needing to use proguard each single time (which causes huge delays)

第一次尝试上的索尼爱立信Xperia迷你临

我已经安装在它的的CyanogenMod 这已经是的扎根并根检查应用已经证实它。

I have installed in it Cyanogenmod which is already rooted and the root checker app has verified it.

这是我以前的嵌入Scala库 2.9.1里面的Andr​​oid设备应用程序:

https://github.com/jbrechtel/Android-Scala-Installer

该行使用库机器人:名字=斯卡拉_... 现在包含在AndroidManifest

This is the app I used to embed Scala library 2.9.1 inside android device:
https://github.com/jbrechtel/Android-Scala-Installer
The lines uses-library android:name="scala_... are now included inside the AndroidManifest

在上面的动作我做的项目/ Build.scala里面的一些细微的变化这样的行: useProguard在安卓=假,

After the above actions I did some minor changes inside "project/Build.scala" like this line: useProguard in Android := false,

我可能失去了一些东西,因为重新编译和执行的android后:启动设备我的抛出java.lang.ClassNotFoundException

这是你期望得到,当你还没有做previous步骤(生根设备安装和内部设备的Scala库)的误差

I am probably missing something because after recompiling and executing android:start-device I got java.lang.ClassNotFoundException
which is the error you are expecting to get when you have not done the previous steps (rooting device and installing scala libraries inside device)

任何意见,欢迎!谢谢

PS:的IntelliJ是当前项目所选择的IDE使Eclipse和相对插件是不是一种选择

推荐答案

有什么错什么我所提到的!

There is nothing wrong with what I have mentioned above!

但Android的斯卡拉安装程序内的命令,该命令要求被安装为可写了/系统文件夹中。不幸的是这不我姜饼的Andr​​oid手机上运行,​​这可能是一般情况。

BUT there is a command inside Android Scala Installer which requests the "/system" folder to be mounted as writable. Unfortunately this does not work on my gingerbread android phone and this might be the general case.

我只是注释掉挂载/系统为可写的操作(也命令mount /系统为只读),并成功安装库!

请注意,我手动设置/系统

I simply commented out the operation of the mount /system as writable (and also the command mount /system as read only) and the libraries installed successfully!
Note that I set manually the permissions of /system as writable before installing libraries

其实我叉GitHub的信息库,因此,你可以找我执行在这里:
https://github.com/pligor/scala-android-libs

In fact I forked the github repository and therefore you can find me implementation over here: https://github.com/pligor/scala-android-libs

要总结。是在你的Scala Android源$ C ​​$ C所需要的唯一改变是Build.scala文件来设置设置ProGuard的是假的,你包括使用<使用库机器人:名字=斯卡拉_... Android清单中。

To summarize. Yes the only alterations needed in your scala android source code is to set the settings in Build.scala file for proguard to be false and you include the uses <uses-library android:name="scala_... inside Android Manifest.

这篇关于安卓+斯卡拉+ preinstalled的Scala库+禁用的ProGuard抛出了ClassNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆