2014-04-23 117 views
2
I have a problem launching the android simulator on Titanium Studio; 

我做過,我應該這樣做。Titanium中的Android模擬器不工作?

以下是錯誤:

[INFO] : Generating i18n files 
[INFO] : Compiling localization files 
[INFO] : Generating D:\Android\Titanium\SpaceJam\build\android\res\values\theme.xml 
[WARN] : Detected Titanium.Map.createView() call which requires Google APIs, but the selected emulator "api_8" does not support Google APIs 
[WARN] : Expect the Titanium.Map.createView() call to fail 
[WARN] : You should use, or create, an Android emulator that does support Google APIs 
[INFO] : Packaging application: D:\ECLLIPSE LATEST\sdk\build-tools\android-4.3\aapt.exe "package" "-f" "-m" "-J" "D:\Android\Titanium\SpaceJam\build\android\gen" "-M" "D:\Android\Titanium\SpaceJam\build\android\AndroidManifest.xml" "-A" "D:\Android\Titanium\SpaceJam\build\android\bin\assets" "-S" "D:\Android\Titanium\SpaceJam\build\android\res" "-I" "D:\ECLLIPSE LATEST\sdk\platforms\android-19\android.jar" "-I" "C:\Users\biri.singh\AppData\Roaming\Titanium\mobilesdk\win32\3.2.2.GA\android\titanium.jar" "-F" "D:\Android\Titanium\SpaceJam\build\android\bin\app.ap_" 
[INFO] : Creating unsigned apk 
[INFO] : Processing D:\Android\Titanium\SpaceJam\build\android\src 
[INFO] : Writing unsigned apk: D:\Android\Titanium\SpaceJam\build\android\bin\app-unsigned.apk 
[INFO] : Determining signature algorithm: C:\Program Files\Java\jdk1.7.0_51\bin\keytool.exe "-J-Duser.language=en" "-v" "-list" "-keystore" "C:\Users\biri.singh\AppData\Roaming\Titanium\mobilesdk\win32\3.2.2.GA\android\dev_keystore" "-storepass" "*******" "-alias" "tidev" 
[INFO] : Using MD5withRSA signature algorithm 
[INFO] : Signing apk: C:\Program Files\Java\jdk1.7.0_51\bin\jarsigner.exe "-sigalg" "MD5withRSA" "-digestalg" "SHA1" "-keystore" "C:\Users\biri.singh\AppData\Roaming\Titanium\mobilesdk\win32\3.2.2.GA\android\dev_keystore" "-storepass" "*******" "-signedjar" "D:\Android\Titanium\SpaceJam\build\android\bin\SpaceJam.apk" "D:\Android\Titanium\SpaceJam\build\android\bin\app-unsigned.apk" "tidev" 
[INFO] : Aligning zip file: D:\ECLLIPSE LATEST\sdk\tools\zipalign.exe "-v" "4" "D:\Android\Titanium\SpaceJam\build\android\bin\SpaceJam.apk" "D:\Android\Titanium\SpaceJam\build\android\bin\SpaceJam.apkz" 
[INFO] : Writing build manifest: D:\Android\Titanium\SpaceJam\build\android\build-manifest.json 
[INFO] : Making sure the adb server is running 
[INFO] : Waiting for emulator to become ready 
[ERROR] : Emulator failed to start in a timely manner 
The current timeout is set to 120000 ms 
[ERROR] Application Installer abnormal process termination. Process exit value was 1 

什麼我做錯了會歡迎任何幫助,謝謝!

+0

https://blog.mindorks.com/android-core-looper-handler-and-handlerthread-bd54d69fe91a –

回答

2

這裏有兩個錯誤。
第一個與使用不受API版本8支持的函數有關 - 我相信您需要使用版本16或更高版本。
第二個發出消息「等待模擬器準備就緒」是由於啓動時想要安裝您的應用程序時仿真器沒有準備好。所以你需要手動安裝應用程序。
您可以在您的應用程序目錄下的以下目錄中找到您的應用程序的可執行文件:build/android/bin/YOURAPPNAME.apk。在Mac上,您需要打開一個終端窗口,cd到該目錄,然後鍵入「chmod 777 YOURAPPNAME.apk」。以下命令,然後cd到平臺的工具目錄中的Android SDK中的安裝目錄下,然後運行:

./adb kill-server 
./adb start-server 
./adb install <full path name to YOURAPPNAME.apk> 

您將看到您的應用程序出現在模擬器的主屏幕上。

+0

thanx bro .............. –