Trouble Shooting - YamamotoDesu/Yamamoto-Notes GitHub Wiki

Android

1. Android Emulator Wifi Connected with No Internet

  • Disabled WiFi on the laptop.
  • Switched off the emulator.
  • Did a cold boot on the emulator (AVD Manager -> on emulator actions -> Cold Boot Now).
  • After reboot with laptop WiFi disabled the emulator showed proper WiFi connection (emulator still shows *
  • AndroidWifi but is connected to my laptop internet. WiFi symbol now look like this: WiFi symbol connected)
  • Enabled WiFi on my laptop and everything worked

2. How do you connect localhost in the Android emulator?

  • Use 10.0.2.2 to access your actual machine.

iOS

1. find_spec_for_exe': can't find gem bundler

➜  ~ pod update
/Library/Ruby/Site/2.6.0/rubygems.rb:265:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) with executable pod (Gem::GemNotFoundException)
	from /Library/Ruby/Site/2.6.0/rubygems.rb:284:in `activate_bin_path'
	from /usr/local/bin/pod:23:in `<main>'

Solution:

sudo gem uninstall cocoapods

sudo gem install -n /usr/local/bin cocoapods

2. download_file': undefined method encode' for URI:Module (NoMethodError)

https://stackoverflow.com/questions/65956569/pod-install-cdn-source-rb342in-download-file-async-undefined-method-encode

Solution:

 brew install [email protected]
⚠️ **GitHub.com Fallback** ⚠️