Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/198.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';t使用Tianium Studio 3.1.0在Android SDK中执行我的应用程序_Android_Android Emulator_Titanium_Titanium Mobile - Fatal编程技术网

Can';t使用Tianium Studio 3.1.0在Android SDK中执行我的应用程序

Can';t使用Tianium Studio 3.1.0在Android SDK中执行我的应用程序,android,android-emulator,titanium,titanium-mobile,Android,Android Emulator,Titanium,Titanium Mobile,我使用的是iMac和X.8.3,我试图让我的测试应用程序与Tianium Studio和Android SDK 2.2一起工作,这些应用程序可以在iPhone模拟器上运行,但不能在Android上运行 以下是在Android Emulator中尝试执行应用程序时出现的终端错误 "[INFO] logfile = /Users/*****/Documents/Titanium_Studio_Workspace/Geocoder/build.log [ERROR] : Build process

我使用的是iMac和X.8.3,我试图让我的测试应用程序与Tianium Studio和Android SDK 2.2一起工作,这些应用程序可以在iPhone模拟器上运行,但不能在Android上运行

以下是在Android Emulator中尝试执行应用程序时出现的终端错误

"[INFO] logfile = /Users/*****/Documents/Titanium_Studio_Workspace/Geocoder/build.log

[ERROR] :  Build process exited with code 1

[ERROR] :  Project failed to build after 208ms

[ERROR] :  Emulator process exited with code 1"
日志文件上也有同样的说法

我已经用Eclipse试用了android模拟器,效果非常好

在Titanium Studio的仪表板页面上,Android SDK的图标显示为红色

“Android配置详细信息。 Android SDK缺少一个或多个部分。可能是Android SDK已经安装,Tianium Studio无法找到目录,或者可能是需要安装一些其他组件

所需项目:

缺少Android SDK。Tianium需要Android平台2.2* 添加Google API版本8“

我已经试过两次删除和安装它,但它没有改变任何东西


在Tianium/Studio/Platforms/Android的首选项中,Android sdk似乎没有问题,下拉式android sdk可以看到3个版本的android 4.2.2和Google API。

编辑您的模拟器,以便将目标设置为您想要使用的级别的Google API。

我在尝试启动厨房水槽应用程序时遇到了同样的问题。在我的例子中,问题是tiapp.xml引用了我的机器上没有安装的Android SDK

我将这些行中的SDK版本号从11更改为14

<uses-sdk android:targetSdkVersion="14"/>
<tool-api-level>14</tool-api-level>

14
另一个可能的选择是安装在tiapp.xml中调用的SDK版本。

答案1: 似乎构建工具已通过最新的Android SDK更新移动到另一个目录。在/Applications/Android sdk/platform tools中创建指向aapt和dx的符号链接:

ln -s /Applications/Android-sdk/build-tools/17.0.0/aapt aapt ln -s /Applications/Android-sdk/build-tools/17.0.0/dx dx
这为我解决了这个问题(在深入研究了他们的Python代码之后)

答复2: 我在windows上,所以我使用了mklink。我必须为lib/dx.jar添加一个链接,它才能工作。我编辑的内容是首先将文件夹“lib”添加到平台工具文件夹,然后在命令行中添加:

cd %YOUR_ANDROID_DIR%\platform-tools    
mklink aapt.exe ..\build-tools\android-4.2.2\aapt.exe
mklink dx.bat ..\build-tools\android-4.2.2\dx.bat      
cd lib                              
mklink dx.bat ..\..\build-tools\android-4.2.2\lib\dx.jar
答复3: 我复制了以下文件:

C:\Android\build-tools\17.0.0\aapt.exe to C:\Android\platform-tools\aapt.exe
C:\Android\build-tools\17.0.0\dx.bat  to  C:\Android\platform-tools\dx.bat
C:\Android\build-tools\17.0.0\lib  to  C:\Android\platform-tools\lib
然后我清理了这个项目,重建了它,现在一切都正常了


这里的来源:

如果厨房水槽演示出现这种情况,修复方法是进入Android SDK管理器并安装“Android 3.0(API 11)”。确保应用程序使用模拟器“谷歌API(Android 2.3.3)”和“WVGA854”。我认为这是一个钛错误,因为您必须安装比实际使用的API级别(2.3.3)更高的API级别(3.0)。

我已经安装了android API 8,现在正在编译,但他说[TRACE]adb设备返回了0个设备/模拟器。为什么我不能使用安卓22呢?当时可能是正确答案,但现在不是了。我花了一整天的时间为钛的旗舰产品演示做质量控制。这些建议都不管用。我正在使用3.1.1 GA。所有其他演示都可以。