![](/img/trans.png)
[英]PhoneGap build app running slow on android device but not in emulator
[英]PhoneGap App not running in Android Emulator
我正在嘗試構建/運行PhoneGap 2.0示例應用程序(\\ Phonegap 2.0 \\ lib \\ android \\ example)。 我已將應用程序導出到.apk文件並安裝在移動設備上。 這是在實際的移動設備上工作,但不是在Android模擬器中。 我只是看不到應用程序圖標,以啟動應用程序。 我查看了主屏幕和應用程序部分。 我嘗試過鎖定和解鎖模擬器之類的東西,但沒有任何作用。
我在D:\\ Eclipse 3.7.2上創建了一個Eclipse Workspace,並通過Eclipse從\\ Phonegap 2.0 \\ lib \\ android \\ example文件夾創建了一個Android Project表單。
我被要求運行兩次應用程序。 第一次它給了我一個錯誤。 它下次運行並顯示模擬器。
日志顯示:
[2012-08-08 19:26:10 - org.apache.cordova.example.cordovaExample] ------------------------------
[2012-08-08 19:26:10 - org.apache.cordova.example.cordovaExample] Android Launch!
[2012-08-08 19:26:10 - org.apache.cordova.example.cordovaExample] The connection to adb is down, and a severe error has occured.
[2012-08-08 19:26:10 - org.apache.cordova.example.cordovaExample] You must restart adb and Eclipse.
[2012-08-08 19:26:10 - org.apache.cordova.example.cordovaExample] Please ensure that adb is correctly located at 'C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe' and can be executed.
[2012-08-08 19:26:25 - org.apache.cordova.example.cordovaExample] ------------------------------
[2012-08-08 19:26:25 - org.apache.cordova.example.cordovaExample] Android Launch!
[2012-08-08 19:26:25 - org.apache.cordova.example.cordovaExample] adb is running normally.
[2012-08-08 19:26:25 - org.apache.cordova.example.cordovaExample] Performing org.apache.cordova.example.cordovaExample activity launch
[2012-08-08 19:26:25 - org.apache.cordova.example.cordovaExample] Automatic Target Mode: launching new emulator with compatible AVD 'MyAVD4.0.3'
[2012-08-08 19:26:25 - org.apache.cordova.example.cordovaExample] Launching a new emulator with Virtual Device 'MyAVD4.0.3'
請幫忙!
請確保adb位置正確.adb工具已移至platform-tools /
如果您在SDK中沒有看到此目錄,請啟動SDK和AVD Manager(執行android工具)並安裝“Android SDK Platform-tools”。 請遵循本教程。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.