Skip to content

Can't run simple template-based app on Android on linux #3214

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
xentopos opened this issue Nov 13, 2017 · 1 comment
Closed

Can't run simple template-based app on Android on linux #3214

xentopos opened this issue Nov 13, 2017 · 1 comment

Comments

@xentopos
Copy link

xentopos commented Nov 13, 2017

On Fedora Linux 24, can't run an unmodified app created from a template on Android via emulator: emulator screen is blank. The node process also doesn't respond to ctrl+C, have to send it sigkill from another terminal. Ctrl + \ does work to kill node, but the emulator needs to be killed from the terminal.

Which platform(s) does your issue occur on?

Android (Android Studio 1.7.1 linux)

Please provide the following version numbers that your issue occurs with:

  • CLI: 3.3.0
  • Cross-platform modules: 3.3.0
  • Runtime(s): [email protected] (this doesn't appear in package.json)
  • Plugin(s): "nativescript-angular": "4.4.1",
    "nativescript-theme-core": "1.0.4",

Here's the output of running "tns run android --timeout 0 --log trace":

Loading extensions.
execFile: /home/dave/Android/Sdk/platform-tools/adb "help"
Exec uname -a 
 stdout: Linux localhost.localdomain 4.11.12-100.fc24.x86_64 #1 SMP Fri Jul 21 17:35:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
 
 stderr: 
Exec npm -v 
 stdout: 5.3.0
 
 stderr: 
spawn: java "-version"
Exec node-gyp -v 
 stdout: v3.6.2
 
 stderr: 
Exec '/home/dave/Android/Sdk/platform-tools/adb' version 
 stdout: Android Debug Bridge version 1.0.39
Revision 3db08f2c6889-android
Installed as /home/dave/Android/Sdk/platform-tools/adb
 
 stderr: 
spawn: /home/dave/Android/Sdk/emulator/emulator "-help"
Result when throw error is false:
{ stdout: <snipped>
  stderr: '',
  exitCode: 0 }
The result of checking is Android Emulator installed is:
- stdout: <snipped>


- stderr: 
Exec mono --version 
 stdout: Mono JIT compiler version 4.2.4 (tarball Thu Jun 23 18:49:17 UTC 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen
 
 stderr: 
Exec git --version 
 stdout: git version 2.7.5
 
 stderr: 
Exec gradle -v 
 stdout: 
------------------------------------------------------------
Gradle 2.12
------------------------------------------------------------

Build time:   2016-03-17 15:59:54 UTC
Build number: Fedora 2.12-1.fc24
Revision:     <unknown>

Groovy:       2.4.5
Ant:          Apache Ant(TM) version 1.9.6 compiled on February 3 2016
JVM:          1.8.0_141 (Oracle Corporation 25.141-b16)
OS:           Linux 4.11.12-100.fc24.x86_64 amd64

 
 stderr: 
Exec "/etc/alternatives/java_sdk_1.8.0/bin/javac" -version 
 stdout:  
 stderr: javac 1.8.0_141

System information:
{ procInfo: 'nativescript/3.3.0',
  platform: 'linux',
  os: 'Linux localhost.localdomain 4.11.12-100.fc24.x86_64 #1 SMP Fri Jul 21 17:35:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux\n',
  shell: '/bin/bash',
  dotNetVer: null,
  procArch: 'x64',
  nodeVer: 'v8.2.1',
  npmVer: '5.3.0',
  javaVer: '1.8.0',
  nodeGypVer: 'v3.6.2\n',
  xcodeVer: null,
  xcodeprojGemLocation: null,
  itunesInstalled: false,
  cocoapodVer: null,
  adbVer: 'Android Debug Bridge version 1.0.39',
  emulatorInstalled: true,
  monoVer: '4.2.4',
  gitVer: '2.7.5',
  gradleVer: '2.12',
  javacVersion: '1.8.0_141' }
Looking for project in '/home/dave/software-projects/myapp/MyApp'
Project directory is '/home/dave/software-projects/myapp/MyApp'.
Installed Android Targets are:  [ 'android-24', 'android-25', 'android-26', 'android-27' ]
Directories found in /home/dave/Android/Sdk/build-tools are 26.0.3, 27.0.0, 27.0.1
Versions found in /home/dave/Android/Sdk/build-tools are 26.0.3, 27.0.0, 27.0.1
Selected version is:  26.0.3
Selected targetSdk is: 26
Directories found in /home/dave/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7 are 18.0.0, 19.0.0, 19.0.1, 19.1.0, 20.0.0, 21.0.0, 21.0.2, 21.0.3, 22.0.0, 22.1.0, 22.1.1, 22.2.0, 22.2.1, 23.0.0, 23.0.1, 23.1.0, 23.1.1, 23.2.0, 23.2.1, 23.3.0, 23.4.0, 24.0.0, 24.0.0-alpha1, 24.0.0-alpha2, 24.0.0-beta1, 24.1.0, 24.1.1, 24.2.0, 24.2.1, 25.0.0, 25.0.1, 25.1.0, 25.1.1, 25.2.0, 25.3.0, 25.3.1, 26.0.0-alpha1, maven-metadata.xml, maven-metadata.xml.md5, maven-metadata.xml.sha1
Versions found in /home/dave/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7 are 18.0.0, 19.0.0, 19.0.1, 19.1.0, 20.0.0, 21.0.0, 21.0.2, 21.0.3, 22.0.0, 22.1.0, 22.1.1, 22.2.0, 22.2.1, 23.0.0, 23.0.1, 23.1.0, 23.1.1, 23.2.0, 23.2.1, 23.3.0, 23.4.0, 24.0.0, 24.0.0, 24.0.0, 24.0.0, 24.1.0, 24.1.1, 24.2.0, 24.2.1, 25.0.0, 25.0.1, 25.1.0, 25.1.1, 25.2.0, 25.3.0, 25.3.1, 26.0.0
Selected version is:  26.0.0-alpha1
Selected AppCompat version is: 26.0.0-alpha1
Validate options for platform: Android
Initializing analytics statuses.
Analytics statuses:  { TrackFeatureUsage: 'disabled', TrackExceptions: 'disabled' }
Searching for devices...
startLookingForDevices; platform is Android
execFile: /home/dave/Android/Sdk/platform-tools/adb "help"
spawn: /home/dave/Android/Sdk/platform-tools/adb "start-server"
Result when throw error is false:
{ stdout: '', stderr: '', exitCode: 0 }
spawn: /home/dave/Android/Sdk/platform-tools/adb "devices"
execFile: /home/dave/Android/Sdk/platform-tools/adb "devices"
Starting Android emulator with image Pixel_XL_API_24
spawn: /home/dave/Android/Sdk/emulator/emulator "-avd" "Pixel_XL_API_24"
execFile: /home/dave/Android/Sdk/platform-tools/adb "devices"
execFile: /home/dave/Android/Sdk/platform-tools/adb "devices"
execFile: /home/dave/Android/Sdk/platform-tools/adb "devices"
execFile: /home/dave/Android/Sdk/platform-tools/adb "devices"
execFile: /home/dave/Android/Sdk/platform-tools/adb "devices"
execFile: /home/dave/Android/Sdk/platform-tools/adb "devices"
execFile: /home/dave/Android/Sdk/platform-tools/adb "devices"
execFile: /home/dave/Android/Sdk/platform-tools/adb "devices"
execFile: /home/dave/Android/Sdk/platform-tools/adb "devices"
execFile: /home/dave/Android/Sdk/platform-tools/adb "devices"
execFile: /home/dave/Android/Sdk/platform-tools/adb "devices"
execFile: /home/dave/Android/Sdk/platform-tools/adb "devices"
execFile: /home/dave/Android/Sdk/platform-tools/adb "devices"
execFile: /home/dave/Android/Sdk/platform-tools/adb "devices"
execFile: /home/dave/Android/Sdk/platform-tools/adb "devices"
execFile: /home/dave/Android/Sdk/platform-tools/adb "devices"

@xentopos
Copy link
Author

So, the workstation I'm using has an AMD Phenom II, which lacks SSSE3, SSE4.1, SSE4.2, etc.

So, this was actually caused by the emulator's refusal to run images w/ API higher than 22 without SSSE3 mentioned here:
https://issuetracker.google.com/issues/37076174

Closing this.

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

1 participant