当您使用jar作为依赖项时,jar根目录中的所有文件都将放入生成的apk的根目录中。同时,如果我只是拥有我的android项目,并且我想将文件放在root中,我就不能!我必须将文件放在res/assets
或res/raw
中,这对我来说无法解决问题。
我正在使用公司内部的库,并且它需要在生成的工件的顶级内容中使用文件名
答案 0 :(得分:2)
使用旧的Android项目(使用import UIKit
class NextViewController: UIViewController {
var mineSpillere = ["1SP","2SP","3SP"]
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
}
*/
}
等的项目),将您的资源文件放在ant
(不是/resources
)中,以确保/res
不触及它们1}}并放在根目录中。
对于新的Android项目(使用aapt
的项目),请将这些资源放在gradle