标签: android-install-apk

为什么我的Android应用程序的新版本不会安装旧版本

我成功地制作了一个小的私有Android应用程序(使用appcelerator,如果这有所不同)并从签名的apk文件安装在我的设备上.

然后,我对我的应用程序进行了一些更改,并使用更新的版本号重新打包,但使用相同的证书签名,当我遇到问题时.

当我尝试在我的Android设备上安装它时,正如预期的那样,它警告我"您正在安装的应用程序将替换另一个应用程序",但"所有以前的应用程序数据都将被保存".我同意更换,安装继续发生错误,直到它收到并说"应用程序未安装",没有任何其他细节.

原始apk中的版本代码和名称是:

android:versionCode ="1"android:versionName ="1.0"

在第二个版本

android:versionCode ="2"android:versionName ="1.1"

我为此感到生气,我错过了什么?

android android-manifest apk appcelerator-mobile android-install-apk

2
推荐指数
1
解决办法
8808
查看次数

Android平板电脑不允许我一次安装多个应用

我的xoom平板电脑上的Android文件夹中有3个.apk文件,但每当我安装其中一个时,我会尝试安装其中一个文件,它会一直告诉我它会覆盖以前的应用程序而且就是这样.我如何安装所有3个?谢谢

android android-install-apk

2
推荐指数
1
解决办法
201
查看次数

如何在不使用adb的情况下在android中安装android应用程序?

我刚才 android terminal

  • 我没有adbinstall apk.
  • 我没有双击apk并安装该应用程序.

所以有任何可用的命令,我可以在Android shell上安装应用程序吗?

android adb apk android-install-apk

2
推荐指数
1
解决办法
2688
查看次数

如何通过一个apk安装两个实例?

我开发了一个Android应用程序,但我需要安装它的两个实例,一个用于我的日常使用,另一个用于调试/开发,我没有太多的手机用于调试,只有一部手机,并且不想要在模拟器上调试,因为它与真实手机相比太慢了.

或者我们可以在APK文件上更改任何内容,然后我们可以将其安装为另一个应用程序,例如更改它的包名称?

目前,我在代码中更改了包名,然后将它们设置为两个应用程序,可以安装在同一部手机上,但这种方式不方便.寻求简单的方法.

更新:打包后(apk文件)是否有任何工具可以直接修改androidmanifest.xml中的包名?然后我们只需要解压缩apk,修改androidmanifest.xml,再次压缩apk.

android android-install-apk

2
推荐指数
1
解决办法
5185
查看次数

安装后删除应用程序(*.apk)

我已经创建了一个Android应用程序,并将其导出为*.apk.是否可以apk在成功安装后自动删除文件?

android apk android-install-apk

2
推荐指数
1
解决办法
2万
查看次数

如何在应用程序中获取应用程序安装失败事件

我一直在使用Action_View,以install apk使用下面的代码

Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE);
    intent.setDataAndType(Uri.fromFile(new File(location + "myAPK.apk")),
            "application/vnd.android.package-archive");
    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActivity(intent);
Run Code Online (Sandbox Code Playgroud)

它会在设备中打开“安装提示”窗口。现在用户可以安装或取消安装过程。

我只对当用户单击安装包但由于某种原因安装失败可能是损坏的 apk 或不匹配的签名 apk 等时感兴趣。

安装失败时如何捕获事件.. 我可以从 ACTION_INSTALL_PACKAGE

我已经阅读过,System Broadcast Messages但所有内容都用于添加或替换 Pacakge。

任何线索?

java android actionview android-install-apk

2
推荐指数
1
解决办法
1544
查看次数

如何减少Ionic2中的应用程序大小?

我是Ionic的新手,最近我开发了一个app.But我的应用程序大小是8mb.我应该如何减少应用程序的大小,我也没有使用任何图像和插件,但它花了8mb的大小.请帮我.

android-install-apk ionic-framework ionic2

2
推荐指数
1
解决办法
2951
查看次数

任务':app:mergeReleaseResources'构建错误执行失败APK

尝试一次构建APK并修复错误后,我./gradlew assembleRelease再次执行错误:任务':app:mergeReleaseResources'构建APK的执行失败

android apk android-install-apk react-native

2
推荐指数
3
解决办法
2598
查看次数

设置应用程序调味后,我在运行应用程序/时收到此错误“install_failed_conflicting_provider”

它工作完美。我可以查看 pdf,但现在由于以下错误,我无法在手机中安装其他版本:

Installation did not succeed. The application could not be installed: INSTALL_FAILED_CONFLICTING_PROVIDER Installation failed due to: 'null' Retry

参考代码:

应用级build.gradle文件

    defaultConfig {
    applicationId "com.abc.xyz"
    minSdkVersion 21
    targetSdkVersion 29
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"}



flavorDimensions "version"
productFlavors {
    appdev {
        dimension "version"
        applicationIdSuffix ".dev"
        versionCode buildVersionCodeDev()
        versionName version_dev

     
    }
    appqa {
        dimension "version"
        applicationIdSuffix ".qa"
        versionCode buildVersionCodeQA()
        versionName version_qa   
    }
    apppro {
        dimension "version"
        applicationIdSuffix ".pro"
        versionCode buildVersionCodePro()
        versionName version_pro
       

    }

}
Run Code Online (Sandbox Code Playgroud)

AndroidManifest.xml

    <provider
        android:name="androidx.core.content.FileProvider"
        android:authorities="com.freshdesk.helpdesk.provider"
        android:exported="false"
        android:grantUriPermissions="true"
        tools:replace="android:authorities">


           <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/provider_paths" /> …
Run Code Online (Sandbox Code Playgroud)

android android-install-apk build.gradle android-build-flavors android-gradle-3.0

2
推荐指数
1
解决办法
1951
查看次数

执行 com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable 时发生故障

当我尝试转换登录 apk 时出现错误。在它工作之前。添加 buildTyper 后,它不起作用。谁能帮我解决这个问题?或者做错了什么?

    release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        resValue "string", "google_maps_key", "AIzaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
        debuggable true
        multiDexEnabled true
        signingConfig signingConfigs.Able
        jniDebuggable true
        renderscriptDebuggable true
    }

    debug {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        resValue "string", "google_maps_key", "AIzaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    }
Run Code Online (Sandbox Code Playgroud)

performance android apk android-install-apk android-studio

2
推荐指数
3
解决办法
1572
查看次数