1

这是我的Logcat:

08-04 16:54:17.330: I/dalvikvm(13558): Turning on JNI app bug workarounds for target SDK version 13...
08-04 16:54:17.370: D/AndroidRuntime(13558): Shutting down VM
08-04 16:54:17.370: W/dalvikvm(13558): threadid=1: thread exiting with uncaught exception(group=0x40a261f8)
08-04 16:54:17.380: E/AndroidRuntime(13558): FATAL EXCEPTION: main
08-04 16:54:17.380: E/AndroidRuntime(13558): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.infiniviewer/com.infiniviewer.InfiniviewerActivity}: java.lang.ClassNotFoundException: com.infiniviewer.InfiniviewerActivity
08-04 16:54:17.380: E/AndroidRuntime(13558):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1880)
08-04 16:54:17.380: E/AndroidRuntime(13558):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
08-04 16:54:17.380: E/AndroidRuntime(13558):    at android.app.ActivityThread.access$600(ActivityThread.java:123)
08-04 16:54:17.380: E/AndroidRuntime(13558):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
08-04 16:54:17.380: E/AndroidRuntime(13558):    at android.os.Handler.dispatchMessage(Handler.java:99)
08-04 16:54:17.380: E/AndroidRuntime(13558):    at android.os.Looper.loop(Looper.java:137)
08-04 16:54:17.380: E/AndroidRuntime(13558):    at android.app.ActivityThread.main(ActivityThread.java:4424)
08-04 16:54:17.380: E/AndroidRuntime(13558):    at java.lang.reflect.Method.invokeNative(Native Method)
08-04 16:54:17.380: E/AndroidRuntime(13558):    at java.lang.reflect.Method.invoke(Method.java:511)
08-04 16:54:17.380: E/AndroidRuntime(13558):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
08-04 16:54:17.380: E/AndroidRuntime(13558):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
08-04 16:54:17.380: E/AndroidRuntime(13558):    at dalvik.system.NativeStart.main(Native Method)
08-04 16:54:17.380: E/AndroidRuntime(13558): Caused by: java.lang.ClassNotFoundException: com.infiniviewer.InfiniviewerActivity
08-04 16:54:17.380: E/AndroidRuntime(13558):    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
08-04 16:54:17.380: E/AndroidRuntime(13558):    at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
08-04 16:54:17.380: E/AndroidRuntime(13558):    at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
08-04 16:54:17.380: E/AndroidRuntime(13558):    at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
08-04 16:54:17.380: E/AndroidRuntime(13558):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
08-04 16:54:17.380: E/AndroidRuntime(13558):    ... 11 more
----------
08-04 16:54:19.790: I/Process(13558): Sending signal. PID: 13558 SIG: 9

这是我的 Manifest.XML

<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="1" android:versionName="1.0" package="com.infiniviewer"
  xmlns:android="http://schemas.android.com/apk/res/android">


    <!--  <application android:label="@string/app_name" android:icon="@drawable/icon" android:name="com.wecoatessurveying_2.Application" android:debuggable="true">  -->


     <uses-sdk android:minSdkVersion="13" />



    <uses-feature android:glEsVersion="0x00020000" />
    <uses-feature android:name="android.hardware.camera" />
    <uses-feature android:name="android.hardware.camera.autofocus" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.VIBRATE" />
     <uses-permission android:name="android.permission.BLUETOOTH" />
     <uses-permission android:name="android.permission.INTERNET" />
      <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />


       <application android:label="@string/app_name" android:icon="@drawable/icon" android:debuggable="true" android:hardwareAccelerated="false"> 


           <uses-library android:name="com.google.android.maps" />


           <activity android:name=".InfiniviewerActivity" android:screenOrientation="landscape" android:theme="@android:style/Theme.NoTitleBar" android:launchMode="singleTask">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity android:name=".LayersActivity" android:screenOrientation="landscape" android:theme="@android:style/Theme.NoTitleBar" android:hardwareAccelerated="true"/>
        <activity android:name=".CalibrateGPSActivity" android:theme="@android:style/Theme.NoTitleBar" android:windowSoftInputMode="stateHidden"/>
        <activity android:name=".SelectSPCSActivitytSPCSActivity" android:theme="@android:style/Theme.NoTitleBar"/>


    </application>



</manifest>
4

3 回答 3

1
Caused by: java.lang.ClassNotFoundException: com.infiniviewer.InfiniviewerActivity

您的 InfiniviewerActivity 在哪里?你是如何构建你的项目的?

于 2013-08-05T00:47:55.990 回答
0

尝试将android:hardwareAccelerated="true"清单文件中的false. 此外,请尝试关闭 AVD 中的网络摄像头仿真。(创建一个没有网络摄像头仿真的新 AVD。)

于 2013-10-07T21:06:48.667 回答
0

我同意 yushulx 这个 infiniviewer 的观点。应该在 src 目录中的类文件还是某种数码显微镜?不管它是什么 infiniviewer 都不见了。我用谷歌搜索了 infiniviewer 我仍然不知道它是什么但它不见了

于 2013-10-07T22:00:06.313 回答