在android studio中运行程序时,模拟器每次都会自动重启

diy*_*iya 7 android android-studio

我正在使用 android studio 3.0.1。我之前在同一个 android studio 和它的完美中使用过模拟器,但现在模拟器在运行期间重新启动。我已经重置了 adb,应用了即时运行,删除了所有模拟器并从 sdk 管理器重新安装了模拟器,但没有用。模拟器仅在应用程序崩溃时重新启动。

Sz-*_*nos 0

我遇到了同样的问题,修复对我有用:

步骤1:

 Open Avd Manager
  (or by pressing the Adv Manager icon in Android Studio Toolbar, or 
 on Windows -> control + shift + a  and in search box enter Adv Manager)*
Run Code Online (Sandbox Code Playgroud)

第2步:

if your emulator is running stop it.
found your emulator in the Avd Manager, in the end of the list(right side)
there is a drop down arrow, press it and  select "wipe data"
Run Code Online (Sandbox Code Playgroud)

步骤3:

 start emulator from the Adv Manager, by pressing the play button (right side of drop down arrow in step 2 ). 

Wait till the emulator launches. When the emulator is up you can build your app.
Run Code Online (Sandbox Code Playgroud)