0
我創建了一個的FlashDevelop項目NME在Main.hx我裝一個位圖,然後點擊與Android爲目標構建按鈕。編譯成功完成,但後來我得到以下錯誤:與Android的目標HAXE NME項目部署失敗:活動類不存在
Running process: C:\Motion-Twin\haxe\haxelib.exe run nme run "C:\Users\...\...\flash-develop\haxe-nme-playground\NMEAndroidTest\application.nmml" android adb server is out of date. killing...
* daemon started successfully * pkg: /data/local/tmp/NMEAndroidTest-debug.apk
Failure [INSTALL_FAILED_CONTAINER_ERROR]
518 KB/s (1838507 bytes in 3.460s) Starting: Intent { act=android.intent.action.MAIN cmp=com.test.nme.android.NMEAndroidTest/.MainActivity }
Error type 3
Error: Activity class {com.test.nme.android.NMEAndroidTest/com.test.nme.android.NMEAndroidTest.MainActivity} does not exist.
但是活動確實存在:
在AndroidManifest.xml中的內容:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="preferExternal" android:versionCode="2" android:versionName="1.0.0" package="com.test.nme.android.NMEAndroidTest">
<application android:label="NMEAndroidTest" android:debuggable="true" android:icon="@drawable/icon">
<activity android:name="MainActivity" android:label="NMEAndroidTest" android:configChanges="keyboard|keyboardHidden|orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="ouya.intent.category.GAME"/>
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="8"/>
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>
NME應該運行開箱即用的Android,我沒有做任何重要的事情,可以打破它。
您可以發佈您haXe的代碼和.nmml文件? – Allan 2013-04-11 06:40:31