我尝试在我的Android AR项目中使用droidAR。我从here找到了一个例子并完成了所有步骤。我下载了droidar-master.zip
并提取了C:/Documents
。我在C:/Documents
下创建了一个名为WorkspaceAR的文件夹。我在WorkspaceAR
打开eclipse。
我将我的测试项目作为android应用程序运行。控制台消息如下:
[2015-04-28 10:28:10 - TestProject] ------------------------------
[2015-04-28 10:28:10 - TestProject] Android Launch!
[2015-04-28 10:28:10 - TestProject] adb is running normally.
[2015-04-28 10:28:10 - TestProject] No Launcher activity found!
[2015-04-28 10:28:10 - TestProject] The launch will only sync the application package on the device!
[2015-04-28 10:28:10 - TestProject] Performing sync
[2015-04-28 10:28:10 - TestProject] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2015-04-28 10:29:04 - TestProject] Application already deployed. No need to reinstall.
[2015-04-28 10:29:04 - TestProject] \TestProject\bin\TestProject.apk installed on device
[2015-04-28 10:29:04 - TestProject] Done!
eclipse包explorer的屏幕截图如下:
我项目的AndroidMAnifets.xml:
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
</application>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-feature android:glEsVersion="0x00020000" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true" />
我的真实设备连接到电脑后运行测试项目。但我什么也看不见。该应用程序无法启动。