简体   繁体   English

由netbeans运行时,android模拟器什么也不显示

[英]android emulator shows nothing while running by netbeans

I'm trying to run my first android hello world program , i already had setup Android SDK and install the required packages, then make a virtual devices using AVD Manager , then configuring android and sdk in netbeans7.4 . 我正在尝试运行我的第一个android hello world程序 ,我已经安装了Android SDK并安装了所需的软件包,然后使用AVD Manager制作了虚拟设备,然后在netbeans7.4中配置了androidsdk I made a new regular android project in netbeans with a regular configurations : 我在netbeans中使用常规配置制作了一个新的常规android项目

在此处输入图片说明

then tried to run it on a device i created using AVD but only got that result : 然后尝试在我使用AVD创建的设备上运行它,但仅得到以下结果:

在此处输入图片说明

and this is the debug result 这是调试结果

ant -f C:\\Users\\HP\\Documents\\NetBeansProjects\\haha debug
Android SDK Tools Revision 22.3.0
Installed at D:\Solace Android\Solace Data\adt-bundle-windows-x86_64-20130729\sdk
Project Name: haha
Project Type: Application
Using latest Build Tools: 19.0.0
Resolving Build Target for haha...
Project Target:   Android 4.4
API level:        19
WARNING: No minSdkVersion value set. Application will install on all Android versions.
----------
Creating output directories if needed...
Created dir: C:\Users\HP\Documents\NetBeansProjects\haha\bin
Created dir: C:\Users\HP\Documents\NetBeansProjects\haha\bin\res
Created dir: C:\Users\HP\Documents\NetBeansProjects\haha\bin\rsObj
Created dir: C:\Users\HP\Documents\NetBeansProjects\haha\bin\rsLibs
Created dir: C:\Users\HP\Documents\NetBeansProjects\haha\gen
Created dir: C:\Users\HP\Documents\NetBeansProjects\haha\bin\classes
Created dir: C:\Users\HP\Documents\NetBeansProjects\haha\bin\dexedLibs
----------
Resolving Dependencies for haha...
Library dependencies:
No Libraries
------------------
----------
Building Libraries with 'debug'...
No sub-builds to iterate on
Merging AndroidManifest files into one.
Manifest merger disabled. Using project manifest only.
Handling aidl files...
No AIDL files to compile.
----------
Handling RenderScript files...
----------
Handling Resources...
Generating resource IDs...
----------
Handling BuildConfig class...
Generating BuildConfig class.
Compiling 3 source files to C:\Users\HP\Documents\NetBeansProjects\haha\bin\classes
input: C:\Users\HP\Documents\NetBeansProjects\haha\bin\classes
Converting compiled files and external libraries into C:\Users\HP\Documents\NetBeansProjects\haha\bin\classes.dex...
Crunching PNG Files in source dir: C:\Users\HP\Documents\NetBeansProjects\haha\res
To destination dir: C:\Users\HP\Documents\NetBeansProjects\haha\bin\res
Processing image to cache: C:\Users\HP\Documents\NetBeansProjects\haha\res\drawable-hdpi\ic_launcher.png => C:\Users\HP\Documents\NetBeansProjects\haha\bin\res\drawable-hdpi\ic_launcher.png
  (processed image to cache entry C:\Users\HP\Documents\NetBeansProjects\haha\bin\res\drawable-hdpi\ic_launcher.png: 87% size of source)
Processing image to cache: C:\Users\HP\Documents\NetBeansProjects\haha\res\drawable-ldpi\ic_launcher.png => C:\Users\HP\Documents\NetBeansProjects\haha\bin\res\drawable-ldpi\ic_launcher.png
  (processed image to cache entry C:\Users\HP\Documents\NetBeansProjects\haha\bin\res\drawable-ldpi\ic_launcher.png: 0% size of source)
Processing image to cache: C:\Users\HP\Documents\NetBeansProjects\haha\res\drawable-mdpi\ic_launcher.png => C:\Users\HP\Documents\NetBeansProjects\haha\bin\res\drawable-mdpi\ic_launcher.png
  (processed image to cache entry C:\Users\HP\Documents\NetBeansProjects\haha\bin\res\drawable-mdpi\ic_launcher.png: 78% size of source)
Processing image to cache: C:\Users\HP\Documents\NetBeansProjects\haha\res\drawable-xhdpi\ic_launcher.png => C:\Users\HP\Documents\NetBeansProjects\haha\bin\res\drawable-xhdpi\ic_launcher.png
  (processed image to cache entry C:\Users\HP\Documents\NetBeansProjects\haha\bin\res\drawable-xhdpi\ic_launcher.png: 85% size of source)
Crunched 4 PNG files to update cache
Creating full resource package...
Current build type is different than previous build: forced apkbuilder run.
Creating haha-debug-unaligned.apk and signing it with a debug key...
Running zip align on final apk...
Debug Package: C:\Users\HP\Documents\NetBeansProjects\haha\bin\haha-debug.apk
Creating new property file: C:\Users\HP\Documents\NetBeansProjects\haha\bin\build.prop
Updating property file: C:\Users\HP\Documents\NetBeansProjects\haha\bin\build.prop
Updating property file: C:\Users\HP\Documents\NetBeansProjects\haha\bin\build.prop
Updating property file: C:\Users\HP\Documents\NetBeansProjects\haha\bin\build.prop
debug:
BUILD SUCCESSFUL (total time: 12 seconds)

Check your computer specs. 检查您的计算机规格。 The AVD is really slow and heavy, so it takes a lot of time to start Android (with an i7 3610qm and 8GB ram running linux it takes 3 minutes to start, and once started it is very laggy). AVD确实很慢而且很沉重,因此启动Android会花费很多时间(使用运行Linux的i7 3610qm和8GB ram,它需要3分钟才能启动,一旦启动,它就会非常麻烦。)

Try running Android with BlueStacks , it's an android Virtual Device like AVD but IMO it works better, it's a lot faster. 尝试使用BlueStacks运行Android,它是像AVD这样的android虚拟设备,但IMO效果更好,速度更快。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Netbeans Android模拟器未运行程序 - Netbeans Android emulator not running program 创建了这个简单的代码来在android中画圆,并且在模拟器上什么也没显示 - Created this simple code to draw circle in android and it shows nothing on emulator Android模拟器未在NetBeans上加载 - Android Emulator not loading on netbeans 我的模拟器没有运行。 Logcat中甚至没有显示任何内容。 它显示“No Connected device”和“No Debuggable pro” - My Emulator is Not running. Even nothing is showing in the Logcat. It shows "No Connected device" and "No Debuggable pro" ListView android什么都不显示 - ListView android shows nothing 在Android模拟器上运行应用程序 - running application on android emulator 运行Android模拟器时出错 - Error on running Android Emulator Firebase Auth 给出 ViewPostIme 指针 1 在物理设备上运行但在 Android 模拟器上工作(Firebase 仅在模拟器上工作) - Firebase Auth gives ViewPostIme pointer 1 While running on a physical device but work on Android Emulator ( Firebase works only on emulator ) 在NetBeans中运行项目时出现NumberFormatException - NumberFormatException while running the project in NetBeans 如何将android模拟器与Netbeans上的Web服务连接? - How to connect android emulator with a webservice on netbeans?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM