xamarin.android

Resource.Designer.cs: “Resource … does not contain a definition for …”

Deadly 提交于 2020-02-21 10:54:08
问题 today I updated the NuGet packages for our Android version (we are currently developing for Android and iOS). After the updates I cannot build the Android version anymore. This is an issue I faced everytime after updating packes so far, but this time I can't solve this problem. Usually restarting Xamarin or Reinstalling the NuGet packages helped. I have 151 error messages like this one: /Users/Username/Projects/MyAppName/Droid/Resources/Resource.designer.cs(118,118): Error CS0117: >MyAppName

MonoDroid apps don't use correct density drawables

故事扮演 提交于 2020-02-16 05:14:28
问题 I am getting some very interesting results when testing an app developed with MonoDroid on different devices with varying screen sizes and densities. I have the following (simplified) folder structure set up in my project: drawable image.png drawable-ldpi image.png drawable-mdpi image.png drawable-hdpi image.png drawable-xhdpi image.png The image in drawable is that of a folder. The images in the other folders are identical except for the size and a letter that is drawn on top to indicate

MonoDroid apps don't use correct density drawables

最后都变了- 提交于 2020-02-16 05:13:26
问题 I am getting some very interesting results when testing an app developed with MonoDroid on different devices with varying screen sizes and densities. I have the following (simplified) folder structure set up in my project: drawable image.png drawable-ldpi image.png drawable-mdpi image.png drawable-hdpi image.png drawable-xhdpi image.png The image in drawable is that of a folder. The images in the other folders are identical except for the size and a letter that is drawn on top to indicate

“cannot find symbol: __FastDevLauncher” blocking deployment to Android Emulator

自闭症网瘾萝莉.ら 提交于 2020-02-08 06:43:25
问题 I'm porting a Windows Phone app to Android using Xamarin Studio and MonoGame. Set up has gone very smoothly, but when I try to deploy the project to the emulator, I get the following errors: C:\Users\croberts\Documents\Visual Studio 2010\Projects\Shelter_Port\Shelter_Android\Shelter_Android\obj\Debug\android\src\mono\TrialSplashScreen60e2a7ae51784c7983049dbf7b06b10c.java(101,101): Error: cannot find symbol symbol : class __FastDevLauncher location: package mono.android Intent intent = new

“cannot find symbol: __FastDevLauncher” blocking deployment to Android Emulator

谁说我不能喝 提交于 2020-02-08 06:43:06
问题 I'm porting a Windows Phone app to Android using Xamarin Studio and MonoGame. Set up has gone very smoothly, but when I try to deploy the project to the emulator, I get the following errors: C:\Users\croberts\Documents\Visual Studio 2010\Projects\Shelter_Port\Shelter_Android\Shelter_Android\obj\Debug\android\src\mono\TrialSplashScreen60e2a7ae51784c7983049dbf7b06b10c.java(101,101): Error: cannot find symbol symbol : class __FastDevLauncher location: package mono.android Intent intent = new

Upload Xamarin application on google play ( Alpha) - Unoptimized APK

a 夏天 提交于 2020-02-07 04:12:33
问题 Im trying to upload my app as an alpha release on google play and I'm getting this error: Imagem do erro First I thought that using the "Generate one package (.apk) per selected ABI" whould solve the problem since the error says that I can manage multiple APKs, but it didnt (this screenshot is from one of the APKs generated when I distribute an archive by Ad-Hoc). If its relevant information, I'm already using linking for SDK And User Assemblies, and my .APK size is 11.9MB on the console.

Creating Xamarin.Forms view that shows paragraph where each sentence is clickable

不羁岁月 提交于 2020-02-06 07:49:05
问题 I have a requirement to create a view on Xamarin.Forms that displays an array of strings in a paragraph. Each sentence should be: 1. Free flowing one after the other on the same line 2. Clickable so that it can be navigated upon click Also, it is desirable to have such a paragraph justify aligned. Here is the envisioned wireframe of the requirement. I have highlighted each string with alternating colors to illustrate how the list of strings (sentences) must ingest into a free flowing

Xamarin.Android error - 'The specified executable is not a valid application for this OS platform'

僤鯓⒐⒋嵵緔 提交于 2020-02-05 05:37:17
问题 I have searched for a solution, to no avail. I am trying to build a Xamarin.Android project but i keep getting the error detailed below. I Am running Visual Studio 2017 Community Edition in Windows 10. Compiler Output: Severity Code Description Project File Line Suppression State Error The "Aapt" task failed unexpectedly. System.AggregateException: One or more errors occurred. ---> System.ComponentModel.Win32Exception: The specified executable is not a valid application for this OS platform.

Xamarin.Android error - 'The specified executable is not a valid application for this OS platform'

两盒软妹~` 提交于 2020-02-05 05:37:04
问题 I have searched for a solution, to no avail. I am trying to build a Xamarin.Android project but i keep getting the error detailed below. I Am running Visual Studio 2017 Community Edition in Windows 10. Compiler Output: Severity Code Description Project File Line Suppression State Error The "Aapt" task failed unexpectedly. System.AggregateException: One or more errors occurred. ---> System.ComponentModel.Win32Exception: The specified executable is not a valid application for this OS platform.

xamarin UI Test - Unable to load the native APK path that I point to

此生再无相见时 提交于 2020-02-02 06:44:33
问题 I want to run a REPL UI Test on native android APK by referring to the path of the APK with following code. public void BeforeEachTest() { app = ConfigureApp.Android .ApkFile("C:/app-debug.apk") .StartApp(): } public void AppLaunches() { app.Repl(); } But, during running test, it will always load test like below which is not the path that I've set. Loading tests from testing\Xamarin Testing\AndroidTest\AndroidTest\bin\Debug\AndroidTest.dll the REPL console is not opening and my selected APKis