0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

React Native error and resolve

Posted at
error
unable to load script from assets index.android.bundle

解決法

mkdir android/app/src/main/assets

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res


error
bash: adb: command not fount
解決法
macの場合 ./bash_profileに android-studioのsdkのpassをかく

export PATH="~/Library/Android/sdk/platform-tools":$PATH

error?
react-native run-android or Live Reload しても変更が反映されない。もうすでに書いてないコードの内容をずっと表示させ続けるerror?
解決方法
adb kill-server
adb start-server
ここでadb devicesを確認するとofflineになってたがonlineにする方法がわからない
ケーブルを抜いて差し直したらonlineになって使えるようになった 力技だからだめなきがする


error
Could not run adb reverse: spawnSync adb ENOENT
解決法
sdkのlocationの場所が悪かったらしい>
export ANDROID_HOME=~/Library/Android/sdk

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?