简体   繁体   English

Appcelerator Studio应用未在设备中运行

[英]Appcelerator Studio app not running in device

I am using titanium sdk version 5.0.2 , I am trying to run the app on my android device, it throws the following error 我正在使用Titanium SDK版本5.0.2 ,我试图在我的android设备上运行该应用程序,它引发以下错误

[INFO] :   Executing Alloy compile: cmd /s /c C:\Users\USER_NAME\.appcelerator\install\5.0.2\package\node_modules\appc-cli-titanium\node_modules\alloy\bin\alloy compile C:\Users\USER_NAME\Documents\Appcelerator_Studio_Workspace\ac (1)\Academic Communicators\app --config platform=android,version=0,simtype=none,devicefamily=none,deploytype=test,target=device --no-colors
'C:\Users\USER_NAME\.appcelerator\install\5.0.2\package\node_modules\appc-cli-titanium\node_modules\alloy\bin\alloy' is not recognized as an internal or external command,
operable program or batch file.
[ERROR] Application Installer abnormal process termination. Process exit value was 1

Running ti build --platform android in terminal shows 在终端显示中运行ti build --platform android

Titanium Command-Line Interface, CLI version 5.0.4, Titanium SDK version 5.0.2.GA
Copyright (c) 2012-2015, Appcelerator, Inc.  All Rights Reserved.

Please report bugs to http://jira.appcelerator.org/

[ERROR] JDK (Java Development Kit) not found.
[ERROR] If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly set.
[ERROR] The JDK can be downloaded and installed from http://appcelerator.com/jdk.

I tried replacing the alloy file in project, also set the JAVA_HOME environment variable to C:\\Program Files (x86)\\Java\\jdk1.7.0_80\\bin; 我尝试替换项目中的alloy文件,还将JAVA_HOME环境变量设置为C:\\Program Files (x86)\\Java\\jdk1.7.0_80\\bin; ,nothing works! ,什么都没有! Help me finding the solution. 帮我找到解决方案。

Thanks 谢谢

Edit 编辑

javac version is javac 1.7.0_80 and ti info shows jdk issue javac版本是javac 1.7.0_80ti info显示jdk问题

Java Development Kit Issues

  x  JDK (Java Development Kit) not installed.
     If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly
     set.
     The JDK is required for must be manually downloaded and installed from
     http://appcelerator.com/jdk.

try to run ti info to see what is missing. 尝试运行ti info以查看缺少的内容。 Also check your PATH variable. 还要检查您的PATH变量。 You said you set JAVA_HOME so you should be able to run "javac --version" from a terminal. 您说您设置了JAVA_HOME,因此您应该能够从终端运行“ javac --version”。 If that is not working please add the path to PATH. 如果这样不起作用,请将路径添加到PATH。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM