Xamarin.forms - There was a problem while parsing the package - xamarin

I am having error message when I try to install .apk file which I make in VS2019 in Xamarin.
The app works just fine when I "install" it through debug, but I can't install through .apk file.
I am using:
Android 11.0 - API 30 - Target
Android 7.0 - API 24 - Minimum
I even make another Xamarin Android project, build it and archive but I received the same error message.

I just need to distribute the app and it solve the problem.

Related

Missinig provisoning profile error when building an ios ionic app using xcode 10

I updated my version of xcode yesterday, and now when I build an ionic app that worked perfectly before I get the following error when validating the ipa:
Unable to process application at this time due to the following error: Missing Provisioning Profile - Apps must contain a provisioning profile in a file named embedded.mobileprovision..
How can I get the embedded.mobileprovision to be generated/ included?
Thanks,
Yuval
Currently the best workaround is to opt-out of the new build system:
If you're building on the command-line, you can specify --buildFlag="-UseModernBuildSystem=0":
Cordova CLI
cordova run ios --buildFlag='-UseModernBuildSystem=0'
cordova build ios --buildFlag='-UseModernBuildSystem=0'
Ionic CLI
ionic cordova run ios -- --buildFlag="-UseModernBuildSystem=0"
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
If you're building with a build.json config file, you can add the following under the iOS release or debug config:
"buildFlag": [
"-UseModernBuildSystem=0"
]
If you are opening the project in the Xcode IDE, you need to change the build system in Workspace Settings to "Legacy Build System"
Solution from here
Worked For Me. Cheers.
https://github.com/apache/cordova-ios/issues/407 has an answer,
\just build with the --buildFlag="-UseModernBuildSystem=0" and adjust project settings to build using legacy mode.
It seems like this issue has been resolved with the release of cordova ios 5.0.0 ( https://cordova.apache.org/announcements/2019/02/09/cordova-ios-release-5.0.0.html ) - they added compatibility with the modern build system

Build an existing ionic2 app using windows phone platform

I have ionic2 app that already works on (Android & IOS) platforms.
After I have copied the source folder to Win7 and downloaded the requirements
I did
1) ionic cordova platform add windows#6.0.0
2) cordova build windows -- --appx=8.1-phone
I got a .sln file in platform/windows folder and output in platforms/windows/AppPackages folder.
but the output .appx file was too small (3.625 K) just like an empty app with splashscreen (contains cordova icon).
Here is the end of the second command
The cordova requirements
I have solved this issue by creating a new ionic app
ionic start MyIonicProject tutorial
and replaced the src folder and every thing what I need from my app with the current .
and after that
ionic cordova platform add windows#6.0.0
cordova run windows
It works like a charm :)
I tried every thing else and didn't get any result.
To build apps for Windows Universal, download and install Visual Studio 2015 Community Edition. During the installation, Select “Tools for Cross Platform Development” as well as the SDK for Windows Universal Apps.
With everything installed, you’ll be able to add a windows platform from the command line with this command:
ionic cordova platform add windows
By default the build command produces two packages: Windows 8.1 and Windows Phone 8.1, which Ionic does not support. To upgrade Windows package to version 10 the following configuration setting must be added to configuration file (config.xml).
<preference name="windows-target-version" value="10.0" />

Visual Studio + Cordova Remotebuild failed Error: 65

until today I could easily build iOS apps from my Windows-PC with remotebuild to my Mac and build it on the connected iPad on my Mac. But now i updated all devices (Mac, iPad) and suddenly it stopped working. When i want to build in Visual Studio i get this message:
Severity Code Description Project File Line Suppression State
Error Remote build error from the build server Build failed with error Error code 65 for command: xcodebuild with args: -xcconfig,/Users/grafikschulung/.taco_home/remote-builds/taco-remote/builds/877/cordovaApp/platforms/ios/cordova/build-debug.xcconfig,-project,memoxx.xcodeproj,ARCHS=armv7 arm64,-target,memoxx,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/grafikschulung/.taco_home/remote-builds/taco-remote/builds/877/cordovaApp/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/grafikschulung/.taco_home/remote-builds/taco-remote/builds/877/cordovaApp/platforms/ios/build/sharedpch: {1} Katalog C:\Users\m.hüttl\Documents\Visual Studio 2015\Projects\Katalog - Kopie\Katalog\MDAVSCLI 1
When I copy the project-folder to my Mac and import it into xCode and choose a development-team and build it from xCode it works perfect...
I believe until Cordova CLI is updated for Visual Sudio with the Xcode 8 changes you will have this issue. Darryl Pogue did write a hook if you want to follow his instructions on his site which might fix the development team issue you are having.
There are a couple other suggestions on the following Stack Overflow page that might give you other options such as changing settings in the Xcode project.
Code Sign Error on Xcode 8 and iOS 10 Cordova Project

Xamarin build fails with an unknown error

I installed Xamarin and was attempting to compile and run an empty app, but the compilation fails with an unknown error:
How can I fix this error?
Install the Xamarin Android Player and select it from the devices list instead of Nexus 10 Android 3.0
Download link, Installation guide

ionic-box vagrant box - Install Android target: "android-22"

I'm using the latest ionic-box as of 27th April 2015. I've been able to ionic platform add android but getting the following error when ionic build android:
[Error: Please install Android target: "android-22".
Hint: Open the SDK manager by running: /home/vagrant/android-sdk-linux/tools/android
You will require:
1. "SDK Platform" for android-22
2. "Android SDK Platform-tools (latest)
3. "Android SDK Build-tools" (latest)]
I've tried updating the sdk with the following command
android update sdk --no-ui
where I get the output of fetching a number of "https://dl-ssl.google.com/android*" File not found. However, if i copy that url and paste it on a browser the file is there.
My vagrant box is now bridged on the network to have direct access to the internet, since NAT was giving me the same errors.
Any help is much appreciated.
Follow these steps.
1) Type android on command line.(Make sure ANDROID_HOME and PATH are set properly)
2) Select API 22 from the populated list.
3) Click install packages.
4) Type android avd on command line.
5) Set API level and other config.
6) Now type ionic build android.
i work around this by changing https to http or vise versa, in options but as a quick fix
for supporting andorid API 21 like #astroanu commented this will help. it will add the support of API 21 in project.
$ cordova platforms remove android
$ cordova platforms add android#3.7.1
I was able to build an android apk by doing the following:
Open up the SDK manager after downloading/installing the android SDK (android studio). AndroidStuido>Appearance&Behavior>System Settings>Android SKD. Alternatively, you can just click on the "SDK Manager" button on the "Welcome to Android Studio" window that appears when you open Android Studio.
Under SDK Platforms, click on Android 5.1.1 - API Level 22 and hit apply to install the package.

Resources