Android API version
錯誤訊息:
[2010-06-20 09:07:08 – ApiDemos]——————————
[2010-06-20 09:07:08 – ApiDemos]Android Launch!
[2010-06-20 09:07:08 – ApiDemos]adb is running normally.
[2010-06-20 09:07:08 – ApiDemos]Performing com.example.android.apis.ApiDemos activity launch
[2010-06-20 09:07:10 – ApiDemos]WARNING: Application does not specify an API level requirement!
[2010-06-20 09:07:10 – ApiDemos]Device API version is 3 (Android 1.5)
[2010-06-20 09:07:10 – ApiDemos]Uploading ApiDemos.apk onto device ’emulator-5554′
[2010-06-20 09:07:55 – ApiDemos]Failed to upload ApiDemos.apk on device ’emulator-5554′
[2010-06-20 09:07:55 – ApiDemos]java.io.IOException: Unable to upload file: timeout
[2010-06-20 09:07:55 – ApiDemos]Launch canceled!
解決方法:
insert
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="3"/>
anywhere inside the <manifest> tag, but not inside <application>
錯誤訊息顯示無法上傳 ApiDemos.apk 至實際硬體平台, 我們直接使用 adb install 亦無法上傳該 apk, 但是 adb install 可以成功安裝某 apk, 我們初步推測可能是該 apk 或是網路連線的問題.
發表迴響