Win7下Android開發環境搭建(8.19,8.24,9.30,10.21)
【
意思就是沒有找到android_10,這裡的10不是android版本,而是API版本。
開啟專案檔案裡的default.properties[project.properties],把target=android-10改成你有的版本[android-18]。
android SDK 目錄下的platforms資料夾內有你下載的全部版本。
】
[2013-10-21 20:07:08 - L9ThreeGong] ------------------------------
[2013-10-21 20:07:08 - L9ThreeGong] Android Launch!
[2013-10-21 20:07:08 - L9ThreeGong] adb is running normally.
[2013-10-21 20:07:08 - L9ThreeGong] Performing com.sixdivisions.l9threegong.L9ThreeGong activity launch
[2013-10-21 20:07:08 - L9ThreeGong] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
【
關於android無法找到手機裝置的問題
專案A都能夠找到我的裝置,能執行的,但是專案B就不能執行,提示如下:
Automatic Target Mode: Unable to detect device compatibility. Please select a target device.明明有裝置連線了啊,專案A可以啊。
研究了一下發現,原來就是版本的問題,因為我的手機是i809,系統是android2.2.3的,那麼對應的其實API Level就是android8。
所以需要第一修改一下執行的android版本,右鍵-->properties-->android-->選擇你手機對應的android版本,然後注意在AndroidManifest.xml中也需要進行一個修改
<uses-sdk android:minSdkVersion="8" />這句話中的SdkVersion也要改成對應的level值,比如我的是2.2.3的那麼就是8,如果是2.3.3的話那麼就是10依次類推就好了。
修改完成後。再執行就可以了找到你連線的手機了。
】
[2013-10-21 20:07:29 - L9ThreeGong] Launch canceled!
[2013-10-21 20:07:44 - L9ThreeGong] ------------------------------
[2013-10-21 20:07:44 - L9ThreeGong] Android Launch!
[2013-10-21 20:07:44 - L9ThreeGong] adb is running normally.
[2013-10-21 20:07:44 - L9ThreeGong] Performing com.sixdivisions.l9threegong.L9ThreeGong activity launch
[2013-10-21 20:07:44 - L9ThreeGong] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2013-10-21 20:07:48 - L9ThreeGong] Launch canceled!
[2013-10-21 20:31:41 - L9ThreeGong] ------------------------------
[2013-10-21 20:31:41 - L9ThreeGong] Android Launch!
[2013-10-21 20:31:41 - L9ThreeGong] adb is running normally.
[2013-10-21 20:31:41 - L9ThreeGong] Performing com.sixdivisions.l9threegong.L9ThreeGong activity launch
[2013-10-21 20:31:41 - L9ThreeGong] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2013-10-21 20:31:45 - L9ThreeGong] Application already deployed. No need to reinstall.
[2013-10-21 20:31:45 - L9ThreeGong] Starting activity com.sixdivisions.l9threegong.L9ThreeGong on device 192.168.1.110:5555
[2013-10-21 20:31:46 - L9ThreeGong] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.sixdivisions.l9threegong/.L9ThreeGong }
【
應用程式意外停止,請重試
應用程式***(在程序com.******中)已意外停止。請重試
很抱歉!“老九三公”應用程式(在“com.sixdivisions.l9threegong”程序中)意外停止,請重試。
】
【
C:\Users\Administrator>gcc -v
Reading specs from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/specs
Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu-ld --wi
th-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --dis
able-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --d
isable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --with
out-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enabl
e-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw-vista special r3)
】