【问题标题】:Unable to Open my App in other Devices?无法在其他设备上打开我的应用程序?
【发布时间】:2016-12-30 07:12:54
【问题描述】:

我的应用程序运行finely when i run..但它无法在其他一些Android设备上打开..这里我包括我的screenshots + Android Manifest..请帮助我..

截图

Android Manifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="ajay.com.mydict">
    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".ListActi">
        </activity>
        <activity android:name=".OnlyDes" />
        <activity android:name=".BothLay" />
        <activity android:name=".Listing" />
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <data android:mimeType="text/plain" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>

【问题讨论】:

    标签: android android-studio android-debugging


    【解决方案1】:

    清单已准备就绪,请在此处检查您的设置==> build.gradle(Module:app)

    android {
    compileSdkVersion 24
    buildToolsVersion "24.0.1"
    defaultConfig {
        applicationId "www.appcodeinfotech.com"
        minSdkVersion 15
        targetSdkVersion 24
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
     }
    }
    

    【讨论】:

      【解决方案2】:

      我编辑了我的 AndroidManifest.xml

      <?xml version="1.0" encoding="utf-8"?>
      <manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="ajay.com.mydict">
          <application
              android:allowBackup="true"
              android:icon="@mipmap/ic_launcher"
              android:label="@string/app_name"
              android:supportsRtl="true"
              android:theme="@style/AppTheme">
              <activity android:name=".ListActi">
              </activity>
              <activity android:name=".OnlyDes" />
              <activity android:name=".BothLay" />
              <activity android:name=".Listing" />
              <activity android:name=".MainActivity">
                  <intent-filter>
                      <action android:name="android.intent.action.MAIN" />
      
                      <category android:name="android.intent.category.LAUNCHER" />
                  </intent-filter>
              </activity>
          </application>
      </manifest>
      

      我认为应该在文本选择时用于隐藏操作栏名称..但它不起作用..所以我删除了该行..它有效..抱歉,在尝试之前我将它发布在这里..

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-02-07
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2023-01-28
        • 2017-05-31
        • 1970-01-01
        • 2013-12-15
        相关资源
        最近更新 更多