I am trying to get a Xamarin-Android app that was created on Linux in Jetbrains Rider to to run on a device from Rider but get the following error:
Xamarin.Android.Common.targets(2465, 3): [MSB4018] /usr/lib/mono/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2465,3): error MSB4018: The "BuildApk" task failed unexpectedly.
System.IO.FileNotFoundException: Could not find file "/usr/lib/mono/xbuild/Xamarin/Android/lib/armeabi-v7a/libmono-android.debug.so"
I have followed the instructions here: https://github.com/0xFireball/xamarin-android-linux
I should also note that running native apps from Android Studio works fine, it's just Xamarin with project Rider. Any help would be greatly appreciated.
Make sure you download the .tar.bz2 archive from the mono-project, and not the .tar.xz file. The latter is missing those files.
Related
I've been trying to fix this error since a week now.Somebody please help me fix this...
I have installed flutter and its working fine.
Installed Android Studio 3.6 and also downloaded Android SDK and other tools.(No errors when i execute flutter doctor)
However when i am trying to run the sample first flutter app on my real device (Lenovo Vibe K5 plus android 5.1.1) i get the following error
Unable to locate gradlew script. Please check that C:\Users\...\android\gradlew.bat exists or that C:\Users\...\app1\android can be read.
And when i run project for the first time i get this :
Gradle task assembleDebug failed with exit code -1
What is the problem? How do i fix this?
i think you deleted .gradle file,
you may need to uninstall each and every file related to android studio and install it again.
I'm trying to build a Cordova Build for android in Visual studio team services.Most of the details are provided in the respective tabs:"android","advanced"(screenshots:).Is there anything else to be filled?
Got an error while building(screenshots:).Can anyone suggest where am i going wrong?
It is due to the wrong path chosen for the cordova working directory.Changed the working directory from "src/mobileApp/******/www" to "src/mobileAp/******". This fixed all issues.
I am using the sample project that is loaded with Android Studio.
I have bought a copy of Android Studio Essentials and have worked through the sample project.
When it is time to run the project, I get a BUILD FAILED warning.
The error is -
Could not find any verfsion that matched com.android.support-v4:20.+.
Required by: MyApplication2:app:unspecified.
Looking forward to resolving this.
Thanks
Peter
assume you have an experience in android development using Eclipse before. You can read a link below to build in Studio.
https://developer.android.com/sdk/installing/studio-build.html
All,
I am trying to upgrade to Cordova v3.0.0 and have installed the cordova package from npm, have installed the latest Android SDK and ensured the necessary PATH variables are in place.
Also I can run adb and android commands from terminal, but I noticed that I don't get any output for which android command.
And the which not resolving I believe is the error I am getting when I try to do cordova platform add android in my newly created project. The error is:
[Error: An error occured during creation of android sub-project. An unexpected error occurred: ANDROID_BIN="${ANDROID_BIN:=$( which android )}" exited with 1
Deleting project...
]
I have been poring over all the Google search results for this error and as to why which android does not resolve, but to no avail.
Could someone please help me out?
Figured out finally !
I had included the platform-tools and tools like this:
PATH="~/android/sdk/tools:~/android/sdk/platform-tools:$PATH"
And when I changed that to the below, it just started working...
PATH="/Users/<username>/android/sdk/tools:/Users/<username>/android/sdk/platform-tools:$PATH"
So much for the which implementation in Mac. Hope this might helps someone starting with Mac like me.
I tried to generate app engine backend for android app module in Android Studio. First I had encountered the Maven nonexistence problem, which was solved later on. Then another problem appeared.
Below is the error log generated:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project AndroidBackend-AppEngine: Compilation failure
[ERROR] error: error reading C:\Users\arifsamin.m2\repository\com\google\appengine\orm\datanucleus-appengine\2.1.2\datanucleus-appengine-2.1.2.jar; error in opening zip file
Do I have to download a new repo due to this? If I have to how to do so? Android Studio is very alien to me.
Make sure you have fresh install of Android Studio 0.2.+. Upgrade from pre 0.2 doesn't work as google included extra maven repo to serve support libraries.
Edit:
path in the log is correct, just stackoverflow plays silly and hides \ before .