Android W/系统(16440):类加载器引用的未知路径:/data/app
我对Android和Eclipse还不太熟悉,我正试图找出我的Android项目可能会出什么问题。两天前,它运行良好,加载到手机上,一切都很愉快。由于我没有做过(afair)除清洁和重建以外的任何事情,我现在收到以下通知:Android W/系统(16440):类加载器引用的未知路径:/data/app,android,eclipse,android-fragments,Android,Eclipse,Android Fragments,我对Android和Eclipse还不太熟悉,我正试图找出我的Android项目可能会出什么问题。两天前,它运行良好,加载到手机上,一切都很愉快。由于我没有做过(afair)除清洁和重建以外的任何事情,我现在收到以下通知: 09-29 11:19:45.148: W/System(16536): ClassLoader referenced unknown path: /data/app/com.example.blephello-2/lib/arm64 这将导致以下错误: 09-29 10:
09-29 11:19:45.148: W/System(16536): ClassLoader referenced unknown path: /data/app/com.example.blephello-2/lib/arm64
这将导致以下错误:
09-29 10:51:35.343: E/AndroidRuntime(15470): Caused by: android.app.Fragment$InstantiationException: Unable to instantiate fragment com.example.blephello.BlepHello: make sure class name exists, is public, and has an empty constructor that is public
09-29 10:51:35.343: E/AndroidRuntime(15470): at android.app.Fragment.instantiate(Fragment.java:620)
09-29 10:51:35.343: E/AndroidRuntime(15470): at android.app.Fragment.instantiate(Fragment.java:584)
09-29 10:51:35.343: E/AndroidRuntime(15470): at android.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2192)
09-29 10:51:35.343: E/AndroidRuntime(15470): at android.app.FragmentController.onCreateView(FragmentController.java:98)
09-29 10:51:35.343: E/AndroidRuntime(15470): at android.app.Activity.onCreateView(Activity.java:5559)
09-29 10:51:35.343: E/AndroidRuntime(15470): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:754)
09-29 10:51:35.343: E/AndroidRuntime(15470): ... 21 more
09-29 10:51:35.343: E/AndroidRuntime(15470): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.blephello.BlepHello" on path: DexPathList[[zip file "/data/app/com.example.blephello-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example.blephello-2/lib/arm64, /vendor/lib64, /system/lib64]]
为了好玩,我读了很多关于gradle设置的问题,但都还没找到答案。不管怎样,当我看我的课和期望的东西时,例如com.example.blephello.blephello,一切看起来都很好:
package com.example.blephello;
import java.util.ArrayList;
import java.util.UUID;
import processing.core.PApplet;
import processing.core.PFont;
import blepdroid.Blepdroid;
import blepdroid.BlepdroidDevice;
public class BlepHello extends PApplet {
BlepdroidDevice test;
PFont fontA;
ArrayList<String> results;
boolean allSetUp = false;
public BlepHello()
{
}
但是,当我运行Android Lint时,我看到以下内容:
Class referenced in the manifest, com.example.blephello.FullscreenActivity, was not found in the project or the libraries AndroidManifest.xml
这让我觉得我的类文件丢失了,我只是不确定它可能是什么。任何关于项目/路径/编译设置的指针都将不胜感激
<activity
android:name=".FullscreenActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/app_name"
android:theme="@style/FullscreenTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
package com.example.blephello;
import com.example.blephello.util.SystemUiHider;
//import android.R;
import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.view.MotionEvent;
import android.view.View;
public class FullscreenActivity extends Activity {
Class referenced in the manifest, com.example.blephello.FullscreenActivity, was not found in the project or the libraries AndroidManifest.xml