应用程序未安装错误正在开发 Android 应用程序

Application not installed error Developing Android app

我最近开发了一个应用程序并将其发送到我们国家的一家名为 CafeBazaar 的商店出售,但在一封电子邮件中他们说:

we installed this app on Huawei P8lite with android 6.0 and we got this error "Application not installed"

现在我搜索了很多关于这种错误的信息,但我认为这是非常普遍的错误,我无法确定应该如何解决这个错误

我的清单是这样的:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>

 <meta-data
    android:name="firebase_crashlytics_collection_enabled"
    android:value="false" />
 <application
    android:name="com.android.example.example.AppController"
    android:allowBackup="true"
    android:hardwareAccelerated="false"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:largeHeap="true"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"
    tools:ignore="GoogleAppIndexingWarning">

我搜索了很多,但通常答案是将这两个属性放在清单上的应用程序标签中:

我还没有这样做,但我想知道我应该怎么做?

对我有用的是用 v1v2

签名我的应用程序

如果您使用这两种方式签名,您可以尝试选择一种。

经过几个星期的头痛,我终于找到了解决方案,我把它放在这里,所以如果有人有同样的问题可以解决它。

对于这个问题,我将这两个属性放在应用程序标签中:

  • android:可调试="false"
  • android:testOnly="false"

终于解决了我的问题。

<application
    android:name="com.android.example.example.AppController"
    android:allowBackup="true"
    android:debuggable="false"
    android:testOnly="false" 
    android:hardwareAccelerated="false"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:largeHeap="true"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"
    tools:ignore="GoogleAppIndexingWarning">