在netbeans中将playN android应用程序部署到手机的问题

时间:2012-09-02 21:51:46

标签: android netbeans playn

我一直在努力解决这个问题。我一直在尝试使用教程here在netbeans上使用playN库设置项目。

该项目构建良好,将作为桌面Java应用程序和Web应用程序运行。我可以将该项目构建为Android应用程序,但它不会部署到我的手机(我有一个Galaxy Nexus)或AVD。

日志似乎很好......

------------------------------------------------------------------------
Building playndemo Android 1.3
------------------------------------------------------------------------

[android:deploy]
C:\android\platform-tools\aapt.exe [dump, xmltree,     C:\Users\Kyle\Documents\NetBeansProjects\playndemo\android\target\playndemo-android-    1.3.apk, AndroidManifest.xml]
N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:screenOrientation(0x0101001e)=(type 0x10)0x0
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0" (Raw: "1.0")
A: package="com.kashank.demo.playndemo.android" (Raw: "com.kashank.demo.playndemo.android")
E: uses-sdk (line=7)
  A: android:minSdkVersion(0x0101020c)=(type 0x10)0x6
  A: android:targetSdkVersion(0x01010270)=(type 0x10)0xb
E: application (line=8)
  A: android:label(0x01010001)=@0x7f030000
  A: android:icon(0x01010002)=@0x7f020000
  A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
  E: activity (line=9)
    A: android:theme(0x01010000)=@0x1030007
    A: android:label(0x01010001)=@0x7f030000
    A: android:name(0x01010003)="playndemoActivity" (Raw: "playndemoActivity")
    A: android:configChanges(0x0101001f)=(type 0x11)0xa0
    E: intent-filter (line=13)
      E: action (line=14)
        A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
      E: category (line=15)
        A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
Waiting for initial device list from the Android Debug Bridge
Found 1 devices connected with the Android Debug Bridge
android.device parameter set to usb
Device 0A3C0D3C02008015_samsung_GalaxyNexus found.
Successfully uninstalled com.kashank.demo.playndemo.android from     0A3C0D3C02008015_samsung_GalaxyNexus
Found 1 devices connected with the Android Debug Bridge
android.device parameter set to usb
Device 0A3C0D3C02008015_samsung_GalaxyNexus found.
Successfully installed     C:\Users\Kyle\Documents\NetBeansProjects\playndemo\android\target\playndemo-android-1.3.apk    to 0A3C0D3C02008015_samsung_GalaxyNexus

------------------------------------------------------------------------
Building playndemo Android 1.3
------------------------------------------------------------------------

[android:run]
Found 1 devices connected with the Android Debug Bridge
android.device parameter set to usb
Device 0A3C0D3C02008015_samsung_GalaxyNexus found.
Attempting to start com.kashank.demo.playndemo.androidplayndemoActivity on device     0A3C0D3C02008015 (avdName = null)
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 5.695s
Finished at: Sun Sep 02 17:15:58 EDT 2012
Final Memory: 6M/15M
------------------------------------------------------------------------

另一个奇怪的是,netbeans确实看到了我的手机,我可以在我的手机主屏幕的netbeans内启动屏幕截图。

0 个答案:

没有答案