Skip to content

Cannot run your app in the native emulator. #1609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
enchev opened this issue Mar 15, 2016 · 2 comments
Closed

Cannot run your app in the native emulator. #1609

enchev opened this issue Mar 15, 2016 · 2 comments

Comments

@enchev
Copy link
Contributor

enchev commented Mar 15, 2016

From @mabelanski on March 15, 2016 15:1

Hi

I have a problem with run emulator cmd :

C:...NS>tns run android --emulator
Project successfully prepared

:config phase: createDefaultIncludeFiles

:config phase: createPluginsConfigFile

:config phase: pluginExtend
+applying configuration from: C:..NS\pla
tforms\android\configurations\include.gradle

:config phase: copyAarDependencies

:config phase: addAarDependencies
+adding dependency: C:..NS\platforms\and
roid\libs\aar\widgets-release.aar
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:preReleaseBuild UP-TO-DATE
:prepareComAndroidSupportAppcompatV72221Library UP-TO-DATE
:prepareComAndroidSupportSupportV42221Library UP-TO-DATE
:prepareWidgetsReleaseLibrary UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:cleanLocalAarFiles
:deleteJavaDir UP-TO-DATE
:ensureMetadataOutDir UP-TO-DATE
:collectAllJars
:isMetadataGenerationNecessary UP-TO-DATE
:buildMetadata UP-TO-DATE
:copyMetadata UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources UP-TO-DATE
:generateDebugSources UP-TO-DATE
:compileDebugJavaWithJavac UP-TO-DATE
:compileDebugNdk UP-TO-DATE
:compileDebugSources UP-TO-DATE
:transformClassesWithDexForDebug UP-TO-DATE
:mergeDebugJniLibFolders UP-TO-DATE
:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:processDebugJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:validateDebugSigning
:packageDebug UP-TO-DATE
:zipalignDebug UP-TO-DATE
:assembleDebug UP-TO-DATE
:deleteExplodedAarFolder UP-TO-DATE
:buildapk UP-TO-DATE

BUILD SUCCESSFUL

Total time: 8.16 secs
Project successfully built.
Using C:...NS\platforms\android\build\outputs\ap
k\liveAppNS-debug.apk
Starting Android emulator with image Nexus_5_API_23_x86
Cannot run your app in the native emulator. Increase the timeout of the operatio
n with the --timeout option or try to restart your adb server with 'adb kill-ser
ver' command. Alternatively, run the Android Virtual Device manager and increase
the allocated RAM for the virtual device.

tns doctor is ok

Thanks

Copied from original issue: NativeScript/NativeScript#1765

@rosen-vladimirov
Copy link
Contributor

Hi @mabelanski,
You can try increasing the timeout option by calling tns run android --emulator --timeout 0 (this means indefinite waiting). However there's known issue in 1.6.x release, so I sugges you to start the emulator manually and call just tns run android after that.

@rosen-vladimirov
Copy link
Contributor

Closing this as duplicate of #1576

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants