Android:什么是创建apk文件的gradle任务?我想添加一些文件。
createApk {
from ("/path/foo") {
include "conf/*.xml"
}
}
我不希望这些文件属于资产。
更新
Detailed task information for packageDebug
Path
:app:packageDebug
Type
PackageApplication (com.android.build.gradle.tasks.PackageApplication)
有没有办法配置packageDebug任务?
android {
packageDebug {
packagedJars.add(file("/path/foo.jar"))
}
}
或在android之外
packageDebug {
packagedJars.add(file("/path/foo.jar"))
}
错误:
Could not find method packageDebug() for arguments
[build_5mzln4dsvn1rw7q419jieg6iv$_run_closure2$_closure9@11943ec2]
on object of type com.android.build.gradle.AppExtension.