美好的一天。我在加载我的应用时遇到了一些问题。当我在手机设备中加载我的应用时,我无法在任务管理器和我的标签中的最近应用中看到我的应用 应用程序是空的。有人像我一样有问题吗?我尝试了清理和重建项目,并在重新启动后兑现我的清单和样式代码如下:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="rasulov.ason">
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<application
android:name=".App"
android:icon="@drawable/launcher"
android:allowBackup="true"
android:label="@string/app_name"
android:theme="@style/AppTheme.TransNav">
<activity
android:name=".Activities.MainActivity"
android:label="">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Activities.ProfileActivty"
android:label=""
android:theme="@style/AppTheme.TransNav" />
<activity
android:name=".Activities.CartActivity"
android:label="@string/title_activity_cart"
android:theme="@style/AppTheme.TransNav" />
<activity
android:name=".Activities.SubCategoryActivity"
android:label=""
android:theme="@style/AppTheme.TransNav" />
<activity
android:name=".Activities.ProductListActivity"
android:label=""
android:theme="@style/AppTheme.TransNav" />
<activity
android:name=".Activities.DetailActivity"
android:label=""
android:theme="@style/AppTheme.TransNav" />
<activity
android:name=".Activities.FilterProductActivity"
android:label="@string/title_activity_filter_product"
android:theme="@style/AppTheme.TransNav" />
<activity
android:name=".Activities.PhotoVewPagerActivity"
android:label=""
android:resizeableActivity="true"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.TransNav" />
<activity
android:name=".FilterTools.RecyclerViewFragment"
android:label=""
android:resizeableActivity="true"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.TransNav" />
<activity
android:name=".FilterTools.RecyclerViewFragmentForColors"
android:label=""
android:resizeableActivity="true"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.TransNav" />
<activity
android:name=".Activities.RegistrationActivity"
android:label=""
android:screenOrientation="portrait"
android:theme="@style/AppTheme.TransNav">
</activity>
<activity
android:name=".Activities.EditProfileActivity"
android:label=""
android:screenOrientation="portrait"
android:theme="@style/AppTheme.TransNav">
</activity>
<activity
android:name=".Activities.SearchActivity"
android:label="@string/title_activity_search"
android:theme="@style/AppTheme.TransNav">
</activity>
</application>
</manifest>
<style name="AppTheme.TransNav" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="windowActionBar">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowContentOverlay">@null</item>
<item name="windowNoTitle">true</item>
</style>
<style name="AppTheme.TransNav.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
答案 0 :(得分:2)
尝试为label
标记中的<activity>
提供字符串值。
如果label
设置为“”,有时会发生这种情况。
答案 1 :(得分:0)
在清单文件中执行以下更改:
<manifest>
<application
android:label="Your application name">
<activity
android:label="Your activity name"/>
</application>
</manifest