签名的Andr​​oid应用程序崩溃 [英] Signed android app crashes

查看:121
本文介绍了签名的Andr​​oid应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我绑发布在市场上我的应用程序。但之后,我签我的APK,并安装它,我得到一个崩溃甚至加载一个活动之前。我所在的下面的错误在logcat中

I'm tying to publish my app on the market. But after i sign my apk and install it i get a crash before it even loads an activity. I've located the following error in the logCat

03-24 14:57:03.080: E/AndroidRuntime(4310): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.golfboxdk/com.golfboxdk.LoginActivity}: 
java.lang.ClassNotFoundException: Didn't find class "com.golfboxdk.LoginActivity" on path: DexPathList[[zip file "/data/app/com.golfboxdk-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.golfboxdk-1, /vendor/lib, /system/lib]]

我检查了我的表现,我真的不能什么是错的身影了。我的应用程序运行速度流畅,当我使用的是不是烧焦的apk。

I've checked my manifest and i really cant figure out whats wrong. My app runs smoothly when I'm using a not singed apk.

这是我的清单的启动

package="com.golfboxdk"
android:versionCode="5"
android:versionName="1.7.2" >

<uses-sdk
    android:minSdkVersion="9"
    android:targetSdkVersion="17" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

<application
    android:name="com.golfboxdk.utils.GolfBoxApplication"
    android:allowBackup="false"
    android:icon="@drawable/app_icon"
    android:killAfterRestore="true"
    android:label="@string/app_name"
    android:theme="@android:style/Theme.Light.NoTitleBar" >
    <activity
        android:name="com.golfboxdk.LoginActivity"
        android:label="@string/app_name"
        android:launchMode="singleTop"
        android:screenOrientation="portrait" >

        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>

    </activity>

任何人能帮助我吗?

Anyone able to help me?

事情我已经尝试:
启用下的所有文件 - >项目 - >属性 - > Java构建path->订单和专家,然后用干净的。
检查ProGuard的激活(这不是)

Things i already tried: Enabling all files under ->Project->Properties->java Build path->Order and Expert, followed with a clean. Check if ProGuard is activated (it's not)

推荐答案

请尝试以下操作:


  1. 项目>取消选中自动生成

  2. 清洁工作区

  3. 手动构建项目

  4. 登入您的APK,并通过蓝牙发送

  5. 测试,并释放它,如果它的工作原理

这篇关于签名的Andr​​oid应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆