【ReactNative】Androidビルドエラー②
エラー
error: failed linking references. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':react-native-youtube:verifyReleaseResources'. > com.android.ide.common.process.ProcessException: Failed to execute aapt
解決方法
android/build.gradle
に以下を追加
subprojects { afterEvaluate {project -> if (project.hasProperty("android")) { android { compileSdkVersion rootProject.ext.compileSdkVersion buildToolsVersion rootProject.ext.buildToolsVersion } } } }
参考
追記
build.gradleもといgradle自体を全然理解してなかったのですごくつまづいた。 gradleについては以下が参考になった。 qiita.com