目前,我正在使用SBT构建一个Scala + Android应用。我不想用Gradle。
我想使用Google Play Services Location-Services API为我提供GPS坐标。我不需要任何其他的游戏服务。但是,当我包含整个库时,它使用OutOfMemory error like this one超时,并且在线来源建议将多重索引作为该问题的解决方案。我根本不想这么做。没有这个必要。
所以,我对这里的these instructions感兴趣。在'Android Studio‘部分,它提供了只在库中为你的应用程序选择特定'com.google.android.gms:play-services-fitness:7.8.0',的选项(例如,可穿戴设备=编译API健身=编译API等)。然而,在“其他”和“Eclipse”部分,这是不存在的。
如何选择仅编译Play Services库的某些API?有没有可能,不使用Gradle + Android Studio?
发布于 2015-08-28 11:10:30
libraryDependencies += "com.google.android.gms" % "play-services-wearable" % "7.8.0"等
如果在执行dexing时内存不足,请增加
dexMaxHeap in Android https://stackoverflow.com/questions/32219839
复制相似问题