はじめに
open frameworksをAndoroid Studioでビルドする際にめちゃくちゃつまづいたので、覚書き
Mac OS: 10.14.6
open frameworks: 11.0
Eset: 6.8.400.0
実機: AQUOS SHV39
Gradle Sync 終わらない
基本的には公式マニュアルに従って設定するのですが、適当なexampleをAndroid Studioに読み込んだところで、Gradle Syncが自動で始まって、一向に終わらない。
3時間後に以下のメッセージが
Gradle sync failed: The first result from the daemon was empty. Most likely the process died immediately after connection.
Consult IDE log for more details (Help | Show Log) (3 h 20 m 3 s 854 ms)
Gradle Syncが終わらないのは、Esetのファイアウォールの設定の影響らしい。
https://qiita.com/kmatae/items/8f898180408bc3a04c9a
これで解決
ビルドした後、実機でアプリが立ち上がらない。
エラー内容
Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant:'
Android Studioの最新版だとエラーするのでバージョン落としたらうまく行きました。
https://forum.openframeworks.cc/t/troubles-with-running-examples/35195/5