質問編集履歴

1

test

2017/08/13 16:25

投稿

退会済みユーザー
test CHANGED
@@ -1 +1 @@
1
- ReactNativeのアプリをandroidシミュレータ動かそうとるとエラーが出る
1
+ test投稿です。。。
test CHANGED
@@ -1,201 +1,5 @@
1
- ###前提・実現したいこと
1
+ - test投稿です
2
2
 
3
+ - test投稿です
3
4
 
4
-
5
- - ReactNativeのアプリをandroidシミュレータで動かそうとしています
6
-
7
- - 環境はmacでシミュレータはGenymotionを使っていますがAndroidStudioで試してみてもダメでした
8
-
9
- - 動かそうとしているアプリはreact-native initで作成したアプリです
10
-
11
-
12
-
13
- ###発生している問題・エラーメッセージ
14
-
15
-
16
-
17
- - react-native run-android すると以下のエラーが出ます
18
-
19
-
20
-
21
- ```
22
-
23
- % react-native run-android [1:03:51]
24
-
25
- Scanning 570 folders for symlinks in /Users/xxx/Applications/react/ReactNativeSample/node_modules (10ms)
26
-
27
- Starting JS server...
28
-
29
- Building and installing the app on the device (cd android && ./gradlew installDebug)...
30
-
31
- Incremental java compilation is an incubating feature.
32
-
33
- :app:preBuild UP-TO-DATE
34
-
35
- :app:preDebugBuild UP-TO-DATE
36
-
37
- :app:checkDebugManifest
38
-
39
- :app:preReleaseBuild UP-TO-DATE
40
-
41
- :app:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE
42
-
43
- :app:prepareComAndroidSupportSupportV42301Library UP-TO-DATE
44
-
45
- :app:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library UP-TO-DATE
46
-
47
- :app:prepareComFacebookFrescoDrawee101Library UP-TO-DATE
48
-
49
- :app:prepareComFacebookFrescoFbcore101Library UP-TO-DATE
50
-
51
- :app:prepareComFacebookFrescoFresco101Library UP-TO-DATE
52
-
53
- :app:prepareComFacebookFrescoImagepipeline101Library UP-TO-DATE
54
-
55
- :app:prepareComFacebookFrescoImagepipelineBase101Library UP-TO-DATE
56
-
57
- :app:prepareComFacebookFrescoImagepipelineOkhttp3101Library UP-TO-DATE
58
-
59
- :app:prepareComFacebookReactReactNative0471Library UP-TO-DATE
60
-
61
- :app:prepareComFacebookSoloaderSoloader010Library UP-TO-DATE
62
-
63
- :app:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE
64
-
65
- :app:prepareDebugDependencies
66
-
67
- :app:compileDebugAidl UP-TO-DATE
68
-
69
- :app:compileDebugRenderscript UP-TO-DATE
70
-
71
- :app:generateDebugBuildConfig UP-TO-DATE
72
-
73
- :app:mergeDebugShaders UP-TO-DATE
74
-
75
- :app:compileDebugShaders UP-TO-DATE
76
-
77
- :app:generateDebugAssets UP-TO-DATE
78
-
79
- :app:mergeDebugAssets UP-TO-DATE
80
-
81
- :app:generateDebugResValues UP-TO-DATE
82
-
83
- :app:generateDebugResources UP-TO-DATE
84
-
85
- :app:mergeDebugResources UP-TO-DATE
86
-
87
- :app:bundleDebugJsAndAssets SKIPPED
88
-
89
- :app:processDebugManifest UP-TO-DATE
90
-
91
- :app:processDebugResources UP-TO-DATE
92
-
93
- :app:generateDebugSources UP-TO-DATE
94
-
95
- :app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
96
-
97
- :app:compileDebugJavaWithJavac UP-TO-DATE
98
-
99
- :app:compileDebugNdk UP-TO-DATE
100
-
101
- :app:compileDebugSources UP-TO-DATE
102
-
103
- :app:transformClassesWithDexForDebug UP-TO-DATE
104
-
105
- :app:mergeDebugJniLibFolders UP-TO-DATE
106
-
107
- :app:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
108
-
109
- :app:processDebugJavaRes UP-TO-DATE
110
-
111
- :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
112
-
113
- :app:validateSigningDebug
114
-
115
- :app:packageDebug
116
-
117
- :app:assembleDebug
118
-
119
- :app:installDebug
120
-
121
- 01:06:52 E/adb: error: could not install *smartsocket* listener: Address already in use
122
-
123
- 01:06:52 E/adb: ADB server didn't ACK
124
-
125
- 01:06:52 E/adb: * failed to start daemon *
126
-
127
- 01:06:52 E/adb: error: cannot connect to daemon
128
-
129
- 01:06:52 E/ddms: '/Users/xxx/Library/Android/sdk/platform-tools/adb,start-server' failed -- run manually if necessary
130
-
131
- :app:installDebug FAILED
132
-
133
-
134
-
135
- FAILURE: Build failed with an exception.
136
-
137
-
138
-
139
- * What went wrong:
140
-
141
- Execution failed for task ':app:installDebug'.
142
-
143
- > com.android.builder.testing.api.DeviceException: Could not create ADB Bridge. ADB location: /Users/xxx/Library/Android/sdk/platform-tools/adb
144
-
145
-
146
-
147
- * Try:
148
-
149
- Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
150
-
151
-
152
-
153
- BUILD FAILED
154
-
155
-
156
-
157
- Total time: 1 mins 29.238 secs
158
-
159
- Could not install the app on the device, read the error above for details.
160
-
161
- Make sure you have an Android emulator running or a device connected and have
162
-
163
- set up your Android development environment:
164
-
165
- https://facebook.github.io/react-native/docs/android-setup.html
166
-
167
- ```
168
-
169
-
170
-
171
- ### 補足情報
172
-
173
-
174
-
175
- ```
176
-
177
- % which adb
5
+ - test投稿です
178
-
179
- /Users/ozaki/Library/Android/sdk/platform-tools/adb
180
-
181
- ```
182
-
183
-
184
-
185
- ```
186
-
187
- % cat ~/.zshrc
188
-
189
- // 省略
190
-
191
- export ANDROID_HOME=$HOME/Library/Android/sdk
192
-
193
- export PATH=$PATH:$ANDROID_HOME/tools
194
-
195
- export PATH=$PATH:$ANDROID_HOME/platform-tools
196
-
197
- ```
198
-
199
-
200
-
201
- ![genymotionの設定](6a23a08b62a4c2feefb82a120343201e.png)