我没有设法安装或调试我制作的应用程序。
1.-我无法编译我的应用程序,因此我更新了包含所有版本的所有软件包。这很有用。(我的应用程序不再有错误了。) 2.-我尝试使用我创建的一些虚拟设备调试它(并删除了几次)并在控制台中获取错误(我尝试了所有给出的答案,比如重新启动并为超时添加时间,以及发布的所有内容关于类似的问题):
[2014-03-06 09:46:31 - MainActivity] Launching a new emulator with Virtual Device 'android_2.2'
[2014-03-06 09:46:35 - MainActivity] New emulator found: emulator-5554
[2014-03-06 09:46:35 - MainActivity] Waiting for HOME ('android.process.acore') to be launched...
[2014-03-06 09:46:54 - MainActivity] WARNING: Application does not specify an API level requirement!
[2014-03-06 09:46:54 - MainActivity] Device API version is 8 (Android 2.2)
[2014-03-06 09:46:54 - MainActivity] HOME is up on device 'emulator-5554'
[2014-03-06 09:46:54 - MainActivity] Uploading MainActivity.apk onto device 'emulator-5554'
[2014-03-06 09:46:54 - MainActivity] Installing MainActivity.apk...
[2014-03-06 09:49:02 - MainActivity] Failed to install MainActivity.apk on device 'emulator-5554!
[2014-03-06 09:49:02 - MainActivity] (null)
[2014-03-06 09:49:02 - MainActivity] Launch canceled!
3.-我试图将文件推送到虚拟设备,但没有用。 4.-之后我选择使用真实设备。这是错误:
[2014-03-06 10:09:14 - MainActivity] Android Launch!
[2014-03-06 10:09:14 - MainActivity] adb is running normally.
[2014-03-06 10:09:14 - MainActivity] Performing *.MainActivity activity launch
[2014-03-06 10:09:23 - MainActivity] WARNING: Application does not specify an API level requirement!
[2014-03-06 10:09:23 - MainActivity] Device API version is 16 (Android 4.1.2)
[2014-03-06 10:09:23 - MainActivity] Uploading MainActivity.apk onto device '****************'
[2014-03-06 10:09:23 - MainActivity] Installing MainActivity.apk...
[2014-03-06 10:09:24 - MainActivity] Installation failed due to invalid APK file!
[2014-03-06 10:09:24 - MainActivity] Please check logcat output for more details.
[2014-03-06 10:09:24 - MainActivity] Launch canceled!
5.-我的上一个资源将.apk文件推送到真实设备。文件传输正常,但是当我尝试安装它时,我得到了这个:
PARSER ERROR 解析包时出现问题。
我的问题是,我做错了什么?或者是否存在某种执行时间错误,我没有得到?
答案 0 :(得分:0)
警告:应用程序未指定API级别要求!
在AdnroidManifest中使用什么
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />