1
3

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初心者向け躓きメモ

Last updated at Posted at 2017-03-26

始めに

React Nativeチュートリアルをしている最中に躓いた点の症状と解決方法をまとめます。初めてReact Nativeを挑戦される方の助けになれば幸いです。

問題

androidコマンドが実行できない

症状

$ android avd
The android command is no longer available.
For manual SDK and AVD management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager

解決方法

旧build-toolsを使う方法 〜Android コマンドが使いたい〜 - Qiitaの記事を参考にすると解決できます。

Application AwesomeProject has not been registered.

症状

react-native run-android でアプリを起動した際に、以下エラーが表示されてしまう。

Application AwesomeProject has not been registered.

解決方法

react-native init AwesomeProjectでプロジェクトを作成しましたが、

AppRegistry.registerComponent('HelloWorldApp', () => HelloWorldApp);

と別コンポーネント名を指定していたので

AppRegistry.registerComponent('AwesomeProject', () => HelloWorldApp);

と指定しなおせば治ります。

1
3
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
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?