当我在Android Studio中运行我的项目时,它在usb连接时在设备上运行正常。但是,当我解压缩apk并手动将其安装到设备时,我的第二个活动崩溃了。可能是什么原因?
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.figengungor.gazeteler"
minSdkVersion 9
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:recyclerview-v7:21.0.+'
compile 'com.android.support:support-v4:21.0.3'
compile 'com.squareup.picasso:picasso:2.5.0'
compile 'org.jsoup:jsoup:1.7.3'
compile files('libs/commons-lang-2.6.jar')
compile project(':sweetalert')
logcat的:
E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.figengungor.gazeteler, PID: 8879
java.lang.ExceptionInInitializerError
at a.b.b.l.<clinit>(Unknown Source)
at a.b.b.f.<init>(Unknown Source)
at a.b.b.e.<init>(Unknown Source)
at a.b.c.di.b(Unknown Source)
at a.b.c.di.a(Unknown Source)
at a.b.c.b.a(Unknown Source)
at a.b.c.ae.a(Unknown Source)
at a.b.a.a(Unknown Source)
at com.figengungor.gazeteler.c.d.a(Unknown Source)
at com.figengungor.gazeteler.activities.f.a(Unknown Source)
at com.figengungor.gazeteler.activities.f.onPostExecute(Unknown Source)
at android.os.AsyncTask.finish(AsyncTask.java:632)
at android.os.AsyncTask.access$600(AsyncTask.java:177)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5479)
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:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException: in == null
at java.util.Properties.load(Properties.java:246)
at a.b.b.k.d(Unknown Source)
at a.b.b.k.<clinit>(Unknown Source)
at a.b.b.l.<clinit>(Unknown Source)
at a.b.b.f.<init>(Unknown Source)
at a.b.b.e.<init>(Unknown Source)
at a.b.c.di.b(Unknown Source)
at a.b.c.di.a(Unknown Source)
at a.b.c.b.a(Unknown Source)
at a.b.c.ae.a(Unknown Source)
at a.b.a.a(Unknown Source)
at com.figengungor.gazeteler.c.d.a(Unknown Source)
at com.figengungor.gazeteler.activities.f.a(Unknown Source)
at com.figengungor.gazeteler.activities.f.onPostExecute(Unknown Source)
at android.os.AsyncTask.finish(AsyncTask.java:632)
at android.os.AsyncTask.access$600(AsyncTask.java:177)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5479)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)