No resource found that matches the given name (at 'value' with value '#integer/google_play_services_version') in Appcelerator - appcelerator

I am trying to build a project in Appcelerator Studio 5.0 and Titanium SDK 7.0.1. I am facing a build error.
Error: No resource found that matches the given name (at 'value' with value '#integer/google_play_services_version')
I have already updated the Google Play Services in my SDK. But still facing the error. Tried clean and build.Still no luck. Any solutions?

Your modules are too old! The map module e.g. is from 2016 and doesn't support Ti SDK 7. Same for the ti.imagefactory.
If you have the newest version of the modules installed you can remove the version attribute so it will use the latest version. Maps and cloud should be included, for imagefactory download the latest version at:
https://github.com/appcelerator-modules/ti.imagefactory/releases
https://github.com/appcelerator-modules/ti.map/releases

Related

Unable to find SDK 'Microsoft.Android.Sdk' error when using Xamarin.Legacy.Sdk on mac

I would like to use Xamarin.Legacy.Sdk to target both monoandroid11.0 and net6.0-android. When I tried to run the java binding sample on mac with visual studio mac 2022, it gave me the following error:
"Unable to find SDK 'Microsoft.Android.Sdk'. SDK not found /usr/local/share/dotnet/sdk/6.0.401/Sdks/Microsoft.Android.Sdk/Sdk not found. Check that a recent enough .NET SDK is installed and/or increase the version specified in global.json."
Anyone seen this before and found a solution?
The sample project can be found on https://github.com/xamarin/Xamarin.Legacy.Sdk/blob/main/samples/JavaBinding/JavaBinding.csproj.
*I have tried this on a Windows machine, it works fine. Not sure why it is not working on mac.
You can check whether the SDK version specified in the global.json file is the same as your SDK version.
For more details, you can refer to the following docs:
NETSDK1141|Microsoft Docs
global.json|Microsoft Docs

Xamarin crashing between two errors

I try to create a new Xamarin.Forms project for Android and Windows Phone, but I'm getting stucked by two errors.
First of all, I have the following error:
DEP3321: To deploy this application, your deployment target should be running Windows Universal Runtime version 10.0.16299.0 or higher. You currently are running version 10.0.14393.0. Please update your OS, or change your deployment target to a device with the appropriate version.
I've found the solution for this error, on some forums people said that setting the TargetMinVersionPlatform to the current running version of Windows Universal Runtime and setting the TargetVersionPlatform to the expected one should resolve the error. Yes it's true, but now I'm receiving another error:
NU1201 Project App3 is not compatible with uap10.0.14393 (UAP,Version=v10.0.14393) / win10-x86. Project App3 supports: netstandard1.6 (.NETStandard,Version=v1.6)
and after I did some research I found that this problem is resolved by doing backwards all the workarounds that I've did for resolving the first problem.
So, in conclusion I'm being stucked between this two errors. Can anyone help me?
Thank you!
As the .NET Standard document, netstandard 2.0 can be used on UWP version 10.0.16299. It can not be used on UWP version 14393, so you can not change your app target min version to 14393. Currently, Windows phone version is 15254 and you can not run the .net standard 2.0 on windows phone. So the solution would be like # magicandre1981 said on his thread Xamarin.Forms UWP project wont install on windows 10 mobile
Besides, you can also try to create your Xamarin app target version 14393 on the VS 2015 directly.

Appcelerator | 'Android Distribution' Android SDK version 4.1.2 not found

I have pulled an Appcelerator project from our developer group and unable to publish or run the project on a local Android device.
When trying to publish the below error screen immediately pops up.
Android SDK version 4.1.2 not found.
I have checked both in the Appcelerator platform settings and Android Studio config and have the SDK installed.The install SDK screen in Appcelerator Tried uninstalling/reinstalling Appcli and the SDK to no avail.
After a few days of searching all the appecelerator files in my project. I finally found the fix for my problem (for anyone googling this).
There's a hidden file in the root of the Appcli project called .settings
Inside of settings there's a package called com.appcelerator.titanium.android.core.prefs
There is an android/sdk_version=4.1.2 that was causing all my issues. Hope that helps someone.
Most likely, your issue seems to be with unsupported Android SDK version as per Ti SDK you are using.
So before doing anything, try to grab what this page says to know all about software compatibilities: Titanium Comptability Matrix
It says that minimum Android version as of latest Ti SDK 6.x.x is API 16.
Now, follow these steps carefully to get a fresh start on your system.
First of all, download Android latest SDK from here: Android SDK
Unzip it & put it in at some simple path like in /Users/username/android-sdk
Download Appcelerator Studio (AS) & install it. It will download all pre-requisites like Java, Python
Open Appcelerator Studio & go to Preferences->Studio->Platforms->Android. Select the path of android sdk you unzipped in step 2.
After all these steps, you can open Android SDK Manager (see screenshot where it is) & install necessary SDK, Tools, etc.
Note: I do not suggest to download SDKs via AS as I have faced path issues in beginning.
Even if these steps do not help you, then provide us the log output after running this command on terminal: appc info
If terminal says this command is not found, then you need to go through the AS installation properly.
I had the same issue. Simply deleting all " Android Play Store Distribution" configurations solved my problem.

Xamarin - Project failed to build after adding Google cloud messagin component

I've Google Cloud Messaging to my project but after adding it, Project stopped building. It gives build output as
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1135,2): error MSB6006: "aapt.exe" exited with code 1.
I searched through net and got info to turn on the "Log verbosity to Diagnostic". It gives the build out in detailed form and after going through the log I came to know that during build below lines gets added to manifest file:
provider android:authorities="${applicationId}.google_measurement_service" android:exported="false" android:name="com.google.android.gms.measurement.AppMeasurementContentProvider"
Issue here is the "${applicationId}", during build it should get replaced with ApplicationId.
This issue can be fixed on Android Studio by doing changes the Gradle file but I'm using Xamarin.
I'm using GCM version 29.0.0.2.
Please let me know the possible workaround.
Thanks
The current version of GCM is dependent on Google Measurement service and the error is related to Google Measurement Service.
To solve the issue I downgraded the GCM to the version which is not dependent on Google Measurement service.
you can't do it straight away as Nugget downloads the latest version. So in order to downgrade the version of GCM. Remove the updated version and specify the version of GCM to be downloaded in packages.config file.
Xamarin Studio will consider the specified version as missing package and automatically download the mentioned package.
In my case I downloaded the 27.0.0 version of GCM.

Install specific old version of Xamarin.Android

TL;DR Is there a way to find the specific Xamarin.Android download link for a specific version mentioned in the release notes?
I would like to patch an app that was build using Xamarin.Android v4.20.0.34 so I need to downgrade my toolset (In future I'll take a snapshot of my build agent VM)
I can find the 4.20 release notes but the downloads referred to in the KB article How do I downgrade to an older version of Xamarin? are all version 3.11.xxxx:
I think that when I had this issue before, based on the stack answer to Downgrade Xamarin.Android I managed to guess the URL for the download I required.
Is there a way to find the specific Xamarin.Android download for a specific version mentioned in the release notes?
Edit
Is there an unofficial list?
We (Xamarin) do not list the unsupported versions of Xamarin tools in the store page.
However, you can email hello#xamarin.com or support email to get installers for old versions
Please use the below url to download specific versions of Xamarin Android.
https://github.com/xamarin/xamarin-android#downloads

Resources