Android Studio IDE emulator opens, but project is not running/Compling
NickName:Zunayeed Kamal Ask DateTime:2019-02-12T08:25:38

Android Studio IDE emulator opens, but project is not running/Compling

When I compiled my Android Studio IDE project, the emulator had opened, but project didn't run.I am using the latest version of Android IDE and I uninstalled Android IDE couple of times, and then again reinstalled it. Still, the problem persists.

Please help me fixing this problem.

When I run my Android Studio IDE project, I got this message at Build window:

Could not find com.android.tools.build:aapt2:3.3.1-5013011.
Searched in the following locations:
  - file:/C:/Users/zunayeed/AppData/Local/Android/Sdk/extras/m2repository/com/android/tools/build/aapt2/3.3.1-5013011/aapt2-3.3.1-5013011.pom
  - file:/C:/Users/zunayeed/AppData/Local/Android/Sdk/extras/m2repository/com/android/tools/build/aapt2/3.3.1-5013011/aapt2-3.3.1-5013011-windows.jar
  - file:/C:/Users/zunayeed/AppData/Local/Android/Sdk/extras/google/m2repository/com/android/tools/build/aapt2/3.3.1-5013011/aapt2-3.3.1-5013011.pom
  - file:/C:/Users/zunayeed/AppData/Local/Android/Sdk/extras/google/m2repository/com/android/tools/build/aapt2/3.3.1-5013011/aapt2-3.3.1-5013011-windows.jar
  - file:/C:/Users/zunayeed/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/tools/build/aapt2/3.3.1-5013011/aapt2-3.3.1-5013011.pom
  - file:/C:/Users/zunayeed/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/tools/build/aapt2/3.3.1-5013011/aapt2-3.3.1-5013011-windows.jar
  - https://jcenter.bintray.com/com/android/tools/build/aapt2/3.3.1-5013011/aapt2-3.3.1-5013011.pom
  - https://jcenter.bintray.com/com/android/tools/build/aapt2/3.3.1-5013011/aapt2-3.3.1-5013011-windows.jar
Required by:
    project :app

Copyright Notice:Content Author:「Zunayeed Kamal」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/54641094/android-studio-ide-emulator-opens-but-project-is-not-running-compling

Answers
Farid Haq 2019-02-12T01:15:10

I think you missed google repository on your gradle file. To use AAPT2, make sure that you have a google() dependency in your build.gradle file, as shown here:\n\nbuildscript {\n repositories {\n google() // here\n jcenter()\n}\ndependencies {\n classpath 'com.android.tools.build:gradle:3.2.0-alpha12'\n\n }\n} \nallprojects {\n repositories {\n google() // and here\n jcenter()\n }\n\n\nSource: https://developer.android.com/studio/releases/#aapt2_gmaven",


More about “Android Studio IDE emulator opens, but project is not running/Compling” related questions

Android Studio IDE emulator opens, but project is not running/Compling

When I compiled my Android Studio IDE project, the emulator had opened, but project didn't run.I am using the latest version of Android IDE and I uninstalled Android IDE couple of times, and then ...

Show Detail

Android Studio not communicating with emulator

I'm on a mac and I updated Android Studio to the latest available version (3.6.1) and now it can't seem to connect to any emulator. I started a new Hello World project and tried building and runnin...

Show Detail

How to terminate Android Emulator running in the background?

I am using Android Studio to learn my flutter project. For the first run with emulator Pixel 5 API 30, it work well. But If I close Android Studio IDE without terminate the running app and then re-...

Show Detail

Emulator opens and disappeared on Android Studio

I am facing this problem when i am starting my emulator from android studio avd manager. it shows the list of my virtual devices. now when i start the emulator. it shows progress to opens and disap...

Show Detail

IDE0006 Error running Xamarin Android project in Visual Studio

I had just created a new Visual Studio for Cross-Platform project. Clean the solution, rebuild solution, run the Android project and it took forever to compile and finally the emulator shows up. And

Show Detail

How to launch Android emulator from command line under Ubuntu, without having Android Studio running?

When the IDE Android Studio is running, it is very easy to launch the Android emulator from the command line under Ubuntu. I my case, I just issue: $HOME/Android/Sdk/emulator/qemu/linux-x86_64/qemu-

Show Detail

Use Visual studio emulator for android as standalone

Is it possible to use the Visual studio emulator for android as a stand alone android emulator without Visual studio IDE. I am having trouble getting it up and running. Facing issues such as thes...

Show Detail

Visual Studio Emulator for Android no upload my project to the emulator

I'm starting to program Android app using Visual Studio 2015 (C#). I installed Xamarin, Android SDK and Visual Studio Emulator for Android. Starting deploy and emulator going well, but i can't find...

Show Detail

Android Studio Emulator errors and problems

I have a problem with runnind the android studio emulator. I tried so many online solutions however, I didn't found any solution for the scenario I have. The starting point is: * Windows 7, 8gbRam,...

Show Detail

Android Studio running Android (Java) Project as Flutter Project

Situation and Problem I have been working with Android Projects using android studio for a while in Java. Recently, I have started learning Flutter and therefore added Flutter modules into Android

Show Detail