build as standalone android app(old)
2015/10/26
for creating standalone apk tool is in progress now. so, I try to create standalone flutter apk from flutter build environment.
ex : create "test" app
(1) create flutter build env
(2) modify BUILD.gn on examples
flutter/src/examples/BUILD.gn
group("examples") {
testonly = true
deps = [
"//examples/fitness",
"//examples/game",
"//examples/mine_digger",
"//examples/stocks",
"//examples/test",
]
}
(3) create app project
draw image and icon
https://github.com/kyorohiro/hello_skyengine/tree/master/test_android_3
project folder name is "test"
./examples/test/lib
./examples/test/apk
./examples/test/...
..
..
(4) build on flutter/src
./sky/tools/gn --android
ninja -C out/android_Debug
(5) install apk
adb install -r ./out/android_Debug/apks/test.apk
Last updated
Was this helpful?