質問: middleman build でapkを生成中以下のエラーが出て困っています。 ご教示ください。 Error: /Users/platforms/android/gradlew: Command failed with exit code 1 Error output: /Users/unicorn/synapse-client/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:24:23-35: AAPT: No resource found that matches the given name (at 'icon' with value '@mipmap/icon'). /Users/unicorn/synapse-client/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:22: error: Error: No resource found that matches the given name (at 'icon' with value '@mipmap/icon'). FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':processDebugResources'. > > com.android.ide.common.process.ProcessException: Failed to execute aapt > > > * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
回答: platforms/res配下にicon.pngが配置されていなくてエラーが出ていたようです。 icon.pngを設定したら正常にapkを作成しました。