尝试运行我的 android 应用程序时出现此错误。
奇怪的是:只有在使用 Jenkins 构建(并签名)android 应用程序时才会发生这种情况。
当我使用 eclipse 中的本地 apk 文件并将其推送到我的设备(或模拟器)时,一切正常
有任何想法吗?
编辑:AndroidManifest.xml
<application
android:name="at.my.test.App"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/MyActionBarTheme" >
<activity
android:name="SplashActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Black.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="LoginActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" >
</activity>
<activity
android:name="MyFirstActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="MySecondActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="MyThirdActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="WebActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="ErrorActivity"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Black.NoTitleBar" >
</activity>
</application>
还有themes.xml 文件:
<style name="MyActionBarTheme" parent="@style/Theme.AppCompat">
<item name="android:actionBarStyle">@style/MyActionBar</item>
<item name="android:homeAsUpIndicator">@drawable/ic_up_arrow</item>
<item name="android:windowActionBar">true</item>
<item name="android:windowBackground">@android:color/white</item>
<item name="android:windowContentOverlay">@null</item>
<!-- Support library compatibility -->
<item name="actionBarStyle">@style/MyActionBar</item>
<item name="homeAsUpIndicator">@drawable/ic_up_arrow</item>
</style>
<!-- ActionBar styles -->
<style name="MyActionBar" parent="@style/Widget.AppCompat.ActionBar">
<item name="android:background">@color/my_highlight</item>
<!-- Support library compatibility -->
<item name="background">@color/my_highlight</item>
</style>