老师,群里的FastEC-升级去除数据库并修复首页渐变BUG.zip有问题
来源:13-9 支付宝接入和实现支付
qq_Zoyix_0
2018-01-02
这个项目下载过来,运行马上崩溃,发现ExampleApp就报错,Latte类中的方法Configurator.getInstance();取不到值,说找不到类:
public static Configurator getInstance() {
return Holder.INSTANCE;
}
报错日志:
01-02 09:54:37.591 7813-7813/com.diabin.fastec.example E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.diabin.fastec.example, PID: 7813
java.lang.NoClassDefFoundError: com/flj/latte/app/Configurator$Holder
at com.flj.latte.app.Configurator.getInstance(Configurator.java:37)
at com.flj.latte.app.Latte.init(Latte.java:14)
at com.diabin.fastec.example.ExampleApp.onCreate(ExampleApp.java:27)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4346)
at android.app.ActivityThread.access$1500(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5019)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.flj.latte.app.Configurator$Holder" on path: DexPathList[[zip file "/data/app/com.diabin.fastec.example-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.diabin.fastec.example-1, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
at com.flj.latte.app.Configurator.getInstance(Configurator.java:37)
at com.flj.latte.app.Latte.init(Latte.java:14)
at com.diabin.fastec.example.ExampleApp.onCreate(ExampleApp.java:27)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4346)
at android.app.ActivityThread.access$1500(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5019)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
1回答
-
傅猿猿
2018-01-03
应该是API地址问题,你配上群公告里阿里云的API,我这边阿里云正在申请,到时候大家
012018-01-03
相似问题