set icon
https://github.com/kyorohiro/hello_skyengine/tree/master/test_android_3/
./example/test/BUILD.gn
import("//sky/build/sky_app.gni")
sky_app("test") {
main_dart = "lib/main.dart"
manifest = "sky.yaml"
if (is_android) {
apk_name = "test"
deps = [
"//examples/test/apk:resources",
]
}
}set icon resource "//examples/test/apk:resources"
./example/test/apk/BUILD.gn
assert(is_android)
import("//build/config/android/config.gni")
import("//build/config/android/rules.gni")
android_resources("resources") {
resource_dirs = [ "res" ]
android_manifest = "AndroidManifest.xml"
}set res foder as resource folder
./example/test/apk/AndroidManifest.xml
set application icon path "android:icon="@mipmap/ic_launcher"
put icon image
https://github.com/kyorohiro/hello_skyengine/tree/master/test_android_3/apk/res
Last updated
Was this helpful?