{"id":648,"date":"2018-07-10T00:37:42","date_gmt":"2018-07-09T15:37:42","guid":{"rendered":"http:\/\/lizefieldwp.azurewebsites.net\/?p=648"},"modified":"2018-07-10T00:37:42","modified_gmt":"2018-07-09T15:37:42","slug":"react-native%e3%81%aeandroid-studio%e3%81%aebuild-gradle","status":"publish","type":"post","link":"https:\/\/lizefieldwp.azurewebsites.net\/index.php\/2018\/07\/10\/react-native%e3%81%aeandroid-studio%e3%81%aebuild-gradle\/","title":{"rendered":"React Native\u306eAndroid Studio\u306ebuild.gradle"},"content":{"rendered":"<p>React Native\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092Android Studio\u3067\u30d3\u30eb\u30c9\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u306e\u3067\u5bfe\u51e6\u30e1\u30e2\u3002<\/p>\n<p>Android Studio 3.1.3<br \/>\nreact-native-cli 2.0.1<br \/>\nreact 16.4.1<br \/>\nreact-native 0.56.0<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nFailed to resolve: common\r\n<\/pre>\n<p><!--more--><br \/>\nProject\/build.gradle\u306e\u8a18\u8ff0\u3092\u4fee\u6b63<\/p>\n<p>\u4fee\u6b63\u524d<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/\/ Top-level build file where you can add configuration options common to all sub-projects\/modules.\r\n\r\nbuildscript {\r\n    repositories {\r\n        jcenter()\r\n        maven {\r\n            url 'https:\/\/maven.google.com\/'\r\n            name 'Google'\r\n        }\r\n        google()\r\n    }\r\n    dependencies {\r\n        classpath 'com.android.tools.build:gradle:3.1.3'\r\n\r\n        \/\/ NOTE: Do not place your application dependencies here; they belong\r\n        \/\/ in the individual module build.gradle files\r\n    }\r\n}\r\n\r\nallprojects {\r\n    repositories {\r\n        mavenLocal()\r\n        jcenter()\r\n        maven {\r\n            \/\/ All of React Native (JS, Obj-C sources, Android binaries) is installed from npm\r\n            url &quot;$rootDir\/..\/node_modules\/react-native\/android&quot;\r\n        }\r\n        maven {\r\n            url 'https:\/\/maven.google.com\/'\r\n            name 'Google'\r\n        }\r\n    }\r\n}\r\n\r\next {\r\n    buildToolsVersion = &quot;26.0.3&quot;\r\n    minSdkVersion = 16\r\n    compileSdkVersion = 26\r\n    targetSdkVersion = 26\r\n    supportLibVersion = &quot;26.1.0&quot;\r\n}\r\n<\/pre>\n<p>\u4fee\u6b63\u5f8c<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/\/ Top-level build file where you can add configuration options common to all sub-projects\/modules.\r\n\r\nbuildscript {\r\n    repositories {\r\n        google()\r\n        jcenter()\r\n        maven {\r\n            url 'https:\/\/maven.google.com\/'\r\n            name 'Google'\r\n        }\r\n    }\r\n    dependencies {\r\n        classpath 'com.android.tools.build:gradle:3.1.3'\r\n\r\n        \/\/ NOTE: Do not place your application dependencies here; they belong\r\n        \/\/ in the individual module build.gradle files\r\n    }\r\n}\r\n\r\nallprojects {\r\n    repositories {\r\n        maven {\r\n            url 'https:\/\/maven.google.com\/'\r\n            name 'Google'\r\n        }\r\n        mavenLocal()\r\n        jcenter()\r\n        maven {\r\n            \/\/ All of React Native (JS, Obj-C sources, Android binaries) is installed from npm\r\n            url &quot;$rootDir\/..\/node_modules\/react-native\/android&quot;\r\n        }\r\n    }\r\n}\r\n\r\next {\r\n    buildToolsVersion = &quot;26.0.3&quot;\r\n    minSdkVersion = 16\r\n    compileSdkVersion = 26\r\n    targetSdkVersion = 26\r\n    supportLibVersion = &quot;26.1.0&quot;\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>React Native\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092Android Studio\u3067\u30d3\u30eb\u30c9\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u306e\u3067\u5bfe\u51e6\u30e1\u30e2\u3002 Android Studio 3.1.3 react-native-cli 2.0.1 react  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[127,128,126],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/lizefieldwp.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts\/648"}],"collection":[{"href":"https:\/\/lizefieldwp.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lizefieldwp.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lizefieldwp.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lizefieldwp.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/comments?post=648"}],"version-history":[{"count":5,"href":"https:\/\/lizefieldwp.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts\/648\/revisions"}],"predecessor-version":[{"id":653,"href":"https:\/\/lizefieldwp.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts\/648\/revisions\/653"}],"wp:attachment":[{"href":"https:\/\/lizefieldwp.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/media?parent=648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lizefieldwp.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/categories?post=648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lizefieldwp.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/tags?post=648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}