TOKYO — Japan’s two largest airlines said Wednesday they would ground their fleets of Boeing’s new 787 aircraft, the Dreamliner, after one operated by All Nippon Airways made an emergency landing in western Japan.

The 137 passengers and crew used emergency slides to exit the aircraft after possible battery trouble and smoke forced the ANA flight to Tokyo from Ube in western Japan to land at Takamatsu airport in southern Japan instead, according to the public broadcaster, NHK. One elderly passenger suffered a slight hip injury during the evacuation, NHK said.

The emergency landing comes after a string of problems in the last month with the aircraft, including a battery fire, fuel leaks, and a cracked cockpit window.

All Nippon said after Wednesday’s incident that it was grounding all 17 of its Dreamliners for inspections. Japan Airlines said it would also temporarily ground the five Boeing 787s it still operates; two others are already undergoing safety checks.