Android emulator does not starta

Asked

Viewed 134 times

0

I’m making a project Android with ionic and cordova but the emulador is not working.

I’ve looked through everything and I can’t find the mistake.

The emulador just doesn’t open.

Note: I am still learning.

I created a AVD by name Android and did in the node:

cordova emulate --target=Android android

My AVD list:

Your environment has been set up for using Node.js 10.9.0 (x64) and npm.

C:\Windows\System32>android list avd
Available Android Virtual Devices:
    Name: Android
  Device: Nexus 4 (Google)
    Path: C:\Users\Carlos\.android\avd\Android.avd
  Target: Android 8.0.0 (API level 26)
 Tag/ABI: default/x86
    Skin: 768x1280
  Sdcard: 200M

C:\Windows\System32>

Follows the compilation:

D:\Trabalhos\Mobile\node\cordova\ionic\Carcleo>cordova emulate --target=Android android
Android Studio project detected
ANDROID_HOME=D:\Trabalhos\Mobile\sdk\Android\andoid-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_181
studio
Subproject Path: CordovaLib
Subproject Path: app
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_9md489uzh4m9h1sp026y6n5p6.run(D:\Trabalhos\Mobile\node\cordova\ionic\Carcleo\platforms\android\app\build.gradle:143)
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:checkDebugManifest UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:prepareLintJar UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:platformAttrExtractor UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:javaPreCompileDebug UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
:CordovaLib:processDebugJavaRes NO-SOURCE
:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:compileDebugAidl UP-TO-DATE
:CordovaLib:packageDebugRenderscript NO-SOURCE
:app:compileDebugRenderscript UP-TO-DATE
:app:checkDebugManifest UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:prepareLintJar UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:createDebugCompatibleScreenManifests UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:splitsDiscoveryTaskDebug UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:javaPreCompileDebug UP-TO-DATE
:app:compileDebugJavaWithJavac UP-TO-DATE
:app:compileDebugNdk NO-SOURCE
:app:compileDebugSources UP-TO-DATE
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:app:mergeDebugShaders UP-TO-DATE
:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:transformClassesWithStackFramesFixerForDebug UP-TO-DATE
:app:transformClassesWithDesugarForDebug UP-TO-DATE
:app:transformClassesWithDexBuilderForDebug UP-TO-DATE
:app:transformDexArchiveWithExternalLibsDexMergerForDebug UP-TO-DATE
:app:transformDexArchiveWithDexMergerForDebug UP-TO-DATE
:CordovaLib:compileDebugNdk NO-SOURCE
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
:CordovaLib:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
:app:mergeDebugJniLibFolders UP-TO-DATE
:app:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:app:processDebugJavaRes NO-SOURCE
:app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:app:validateSigningDebug
:app:packageDebug UP-TO-DATE
:app:assembleDebug UP-TO-DATE
:app:cdvBuildDebug UP-TO-DATE

BUILD SUCCESSFUL in 6s
46 actionable tasks: 1 executed, 45 up-to-date
Built the following apk(s):
        D:\Trabalhos\Mobile\node\cordova\ionic\Carcleo\platforms\android\app\build\outputs\apk\debug\app-debug.apk
ANDROID_HOME=D:\Trabalhos\Mobile\sdk\Android\andoid-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_181
Waiting for emulator to start...
  • What are the specifications of your pc ? RAM, processor, video card etc ? The android studio does not Rada very well on PC’s with less than 8gb of ram and has some problems with intel processors . You can also debug your project by connecting your Smartphone to the pc

  • Um, maybe that’s the problem: Core 2 DUO 2GB with 4 MB RAM Onboard video card. It’s an Acer 5920-6080 from 10 years ago. In my last attempt I even opened another window of the prompt, but it stood there and did not display any information

  • 'Cause it may be one of the reasons ADB is slow to load, unfortunately android studio consumes a lot of memory itself, and Android Emulator consumes more by the settings of your pc may even come to run, however will be crashing

  • I DID NOT install Android Studio. Only in sequence: Node, Cordova, Ionic So, after installing all the dependencies to run the emulator through the SDK Manager.exe. I generated two packages with the command Ionic start Carcleo Blank then I ran the command Cordova emulate --target=Android android and then the magic started. However, the emulator does not incite.

  • @sam. I’m sorry, I don’t understand! What exactly did you mean? I have several poorly formulated questions here on the forum or is that question poorly formulated? What did you really mean? And by the way, would you have any consideration to do to improve the answers given above to that question? Good Morning!

  • Ok, I get it now. But for now the problem continues. That’s why I have not yet marked as solved! But thanks for the guidance!

  • Try running the command: Cordova run android --Emulator

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.