Google Dynamic Delivery INSTALL_FAILED_INVALID_APK - android

I can download success and it also return installed success result.But i am getting the following error:
E/Finsky: [2] com.google.android.finsky.cq.k.onReceive(20): Error -504 while installing pkgname.pkgname.pkgname: INSTALL_FAILED_INVALID_APK: Package couldn't be installed in /data/app/pkgname.pkgname.pkgname-S4Ty06YpxYgYiWkxtqNmWw==: Package /data/app/pkgname.pkgname.pkgname-S4Ty06YpxYgYiWkxtqNmWw==/split_dynamic_name.apk code is missing

finally i fix it.
enable multiDex support

Related

Android Studio couldn't see Androidmanifest.xml after adding Google Maps

My iOS app is working very well but after I edited Android Manifest and added Google Maps information, my Android app at first was working but it couldn't connect with Google Maps. I edited it again and after that I changed with previous saved one that I had but now I send you the final error that Android Studio shows me, please help to fix this problem.
The error is this:
zipro W 09-13 09:36:37 8721 108688 Error opening archive
/Users/johnhabibpour/StudioProjects/08-19-2021
AM/absolutestonedesignpro/build/app/outputs/flutter-apk/app.apk:
Invalid file ERROR: dump failed because resource AndroidManifest.xml
not found Failed to extract manifest from APK: ProcessException: The
command failed Command:
/Users/johnhabibpour/Library/Android/sdk/build-tools/31.0.0/aapt dump
xmltree /Users/johnhabibpour/StudioProjects/08-19-2021
AM/absolutestonedesignpro/build/app/outputs/flutter-apk/app.apk
AndroidManifest.xml. No application found for
TargetPlatform.android_x86. Is your project missing an
android/app/src/main/AndroidManifest.xml? Consider running "flutter
create ." to create one.

Android studio download error(Request failed with status code 416)

While installing Android Studio(Sources for android 29) I am getting the above error. What could be the reason?
Thanks,
Go to this location-
C:\Users\gauta\AppData\Local\Android\Sdk.downloadIntermediates
In place of *gauta write your username
Then delete all the files in downloadIntermediates and again download the package from sdk manager..
this worked for me (Error code-416)

INSTALL_FAILED_MISSING_SHARED_LIBRARY error in Android Studio - Java/Kotlin and Visual Studio - Xamarin

I am wanting to debug and install my application on a physical clock.
First I tried to create the application in Xamarin.Android, I finished the application and it worked very well in an emulator, but when I tried to send to the device, the following error appeared:
ADB0010: Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY: Package couldn't be >installed in /data/app/AppXamarinWear.AppXamarinWear-1: Package >AppXamarinWear.AppXamarinWear requires unavailable shared library >com.google.android.wearable; failing!]
em Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String >output, String packageName) na >E:\A_work\1824\s\External\androidtools\Mono.AndroidTools\Internal\AdbOutputP>arsing.cs:linha 341
em Mono.AndroidTools.AndroidDevice.<>c__DisplayClass95_0.>>b__0(Task1 t) na >E:\A\_work\1824\s\External\androidtools\Mono.AndroidTools\AndroidDevice.cs:li>nha 753
em System.Threading.Tasks.ContinuationTaskFromResultTask1.InnerInvoke()
em System.Threading.Tasks.Task.Execute() 0
Then I created an empty project in AndroidStudio, just created the project, did not change any line of code, and tried to run the application on the device, so I got the following error:
Installation failed with message Failed to commit install session 1131471407 >with command cmd package install-commit 1131471407. Error: >INSTALL_FAILED_MISSING_SHARED_LIBRARY: Package couldn't be installed in >/data/app/br.pinheiros.weardebug7-1: Package br.pinheiros.weardebug7 requires >unavailable shared library com.google.android.wearable; failing!.
It is possible that this issue is resolved by uninstalling an existing >version of the apk if it is present, and then re-installing.
I understood that the two solutions are bringing the same error, something with Google Api, I have already changed all the developer settings in Wear.
Model: Zeblaze Thor 4 Pro

Error at installing my app on mobile for testing

my package name is com.example.project name but to upload it on google console for publishing it.I change it to com.ahsan.project name, now when i am trying to run it on my mobile it is showing me this error....
already have tried to revert back to old changes but it is not working.still getting the same result.
Run Window
Unknown failure: Exception occurred while executing:
java.lang.IllegalArgumentException: Unknown package: com.example.ethlon
at com.android.server.pm.Settings.getInstallerPackageNameLPr(Settings.java:5051)
at com.android.server.pm.PackageManagerService.getInstallerPackageName(PackageManagerService.java:27786)
at com.android.server.pm.PackageManagerService.isOrphaned(PackageManagerService.java:27792)
at com.android.server.pm.PackageManagerService.deletePackageVersioned(PackageManagerService.java:23919)
at com.android.server.pm.PackageInstallerService.uninstall(PackageInstallerService.java:993)
at com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:912)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:134)
at android.os.ShellCommand.exec(ShellCommand.java:96)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:28572)
at android.os.Binder.shellCommand(Binder.java:581)
at android.os.Binder.onTransact(Binder.java:481)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:3209)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:5078)
at android.os.Binder.execTransact(Binder.java:682)
Error while Installing APKs
this error happen because
your package name not the same in all project
search and update your package to be the same
Most of the time this error came due to Changes in file location in Project folder.
To solve this problem you just have to open whole project again as a new Project.
Steps-
File-Export To Zip File (save as new zip file).
Unzip the zip file.
Go to Open and select the location of unzip file.
Now try to run app on device.

Xamarin XMPP client library

I have spent the whole day looking for a XMPP client library that will work in Xamarin.
Specifically put , I am developing a cross platform app with a portable class library (Xamarin Forms). I have gone through Sharp.Xmpp, s22.xmp, agsSharp and UbietyXMPP.
Each one have its own peculiar plugging in issue with Xamarin.
Is there any tested and tried client library that is compatible with Xamarin?
The following is the error text of each client libraries while adding from NuGet and in the case of agsXmpp the compile time error log.
Error messages for client libraries:
AgsXmpp
Error 2 Exception while loading assemblies:
System.IO.FileNotFoundException: Could not load assembly
'System.Drawing, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono
for Android profile? File name: 'System.Drawing.dll' at
Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference
reference, ReaderParameters parameters) at
Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection`1
assemblies, AssemblyDefinition assembly, Boolean topLevel) at
Xamarin.Android.Tasks.ResolveAssemblies.Execute() whattf.Droid
S22.Xmpp
Installing 'S22.Xmpp 1.0.0.0'. Successfully installed 'S22.Xmpp
1.0.0.0'. Adding 'S22.Xmpp 1.0.0.0' to whattf.Droid. Uninstalling 'S22.Xmpp 1.0.0.0'. Successfully uninstalled 'S22.Xmpp 1.0.0.0'.
Install failed. Rolling back... Could not install package 'S22.Xmpp
1.0.0.0'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain
any assembly references or content files that are compatible with that
framework. For more information, contact the package author.
XMPP
Installing 'XMPP 0.7.0.21'. Successfully installed 'XMPP 0.7.0.21'.
Adding 'XMPP 0.7.0.21' to whattf.Droid. Uninstalling 'XMPP 0.7.0.21'.
Successfully uninstalled 'XMPP 0.7.0.21'. Install failed. Rolling
back... Could not install package 'XMPP 0.7.0.21'. You are trying to
install this package into a project that targets
'MonoAndroid,Version=v6.0', but the package does not contain any
assembly references or content files that are compatible with that
framework. For more information, contact the package author.
UbietyXMPP
Attempting to resolve dependency 'SharpZipLib (= 0.86.0)'. Attempting
to resolve dependency 'Heijden.Dns (= 1.0.0)'. Attempting to resolve
dependency 'Microsoft.Bcl (= 1.1.10)'. Attempting to resolve
dependency 'Microsoft.Bcl.Build (= 1.0.14)'. Attempting to resolve
dependency 'Microsoft.Bcl.Build (= 1.0.21)'. Attempting to resolve
dependency 'Microsoft.Net.Http (= 2.2.29)'. Attempting to resolve
dependency 'Serilog (= 1.5.9)'. Attempting to resolve dependency
'Serilog.Sinks.Seq (= 1.5.15)'. Attempting to resolve dependency
'libidn (= 1.29.1)'. Attempting to resolve dependency
'ExceptionAnalyzer (= 1.0.5)'. Attempting to resolve dependency
'Microsoft.AnalyzerPowerPack (= 1.0.1)'. Installing 'SharpZipLib
0.86.0'. Successfully installed 'SharpZipLib 0.86.0'. Installing 'Heijden.Dns 1.0.0'. Successfully installed 'Heijden.Dns 1.0.0'.
Installing 'Microsoft.Bcl 1.1.10'. Successfully installed
'Microsoft.Bcl 1.1.10'. Installing 'Microsoft.Bcl.Build 1.0.21'.
Successfully installed 'Microsoft.Bcl.Build 1.0.21'. Installing
'Microsoft.Net.Http 2.2.29'. Successfully installed
'Microsoft.Net.Http 2.2.29'. Installing 'Serilog 1.5.9'. Successfully
installed 'Serilog 1.5.9'. Installing 'Serilog.Sinks.Seq 1.5.15'.
Successfully installed 'Serilog.Sinks.Seq 1.5.15'. Installing 'libidn
1.29.1'. Successfully installed 'libidn 1.29.1'. Installing 'ExceptionAnalyzer 1.0.5'. Successfully installed 'ExceptionAnalyzer
1.0.5'. Installing 'Microsoft.AnalyzerPowerPack 1.0.1'. Successfully installed 'Microsoft.AnalyzerPowerPack 1.0.1'. Installing 'UbietyXMPP
0.7.37.0'. Successfully installed 'UbietyXMPP 0.7.37.0'. Adding 'SharpZipLib 0.86.0' to whattf.Droid. Uninstalling 'SharpZipLib
0.86.0'. Successfully uninstalled 'SharpZipLib 0.86.0'. Install failed. Rolling back... Could not install package 'SharpZipLib
0.86.0'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain
any assembly references or content files that are compatible with that
framework. For more information, contact the package author.
Xamarin is a subset of the full .NET framework and uses its own core libraries. This is why you will not get those libraries running without recompiling them for Xamarin and doing some modifications to the source when required.
The MatriX XMPP library is available for Xamarin iOS and Android. But its a commercial product.

Categories

Resources