How to Fix Xamarin Runtime Error "System.DllNotFoundException: java-interop" - java

I Created a new Blank Android Project on Visual Studio 2015 and when i tried to Run that, it threw an Exception that "System.DllNotFoundException: java-interop" and the solution is looking for a file named "AndroidRuntime.cs" in this adress: "/Users/builder/data/lanes/3340/4e275588/source/monodroid/src/Mono.Android/src/Runtime/AndroidRuntime.cs"
my OS is Windows 7 64bit and i`v already installed this Tools:
• JDK 7 update 7.1
• Xamarin Visual Studio 4.1.0.530
• Xamarin Studio 6.0.0.5174-0
• Android NDK r11c
• Latest version of Android SDKs

After I installed the latest Xamarin components (Xamarin 4.1.0.530 / Xamarin.Android 6.1.0.71), my projects started showing "Module: Java.Interop...should be referenced" warnings/errors.
Adding a reference to the Xamarin Java.Interop assembly resolved this issue for me.
Also, make sure you have installed the latest Xamarin.Android package.
Hope this solves your issue as well.

Related

IntelliJ IDEA CE confliction issue between Android SDK and JDK

I recently installed IntelliJ IDEA CE on my Mac. Now IntelliJ doesn't comes with Android SDK or JDK by default, so IntelliJ asked me to first setup a Java JDK then setup Android SDK. Now I also have Android Studio installed on my Mac, now since Android Studio comes by default with Android SDK and Open JDK, I didn't took the pain to download Android SDK and JDK again so I simply set the path to Android Studio's JDK and Android SDK for IntelliJ so my question is will this result in any confliction between Android Studio and IntelliJ?

Parsing Data for android-21 failed on JDK1.8

Been facing this issue on the out of the box standard android 21 application see attached
I am on 10.9.5 Mac OS X
I am currently on JDK 1.8 see
/usr/libexec/java_home
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
In eclipse it shows the following:
I have tried switching the JDK versions and also installing/uninstalling eclipse, SDK and SDK tools.
Everything works fine in Android studio but not eclipse. unfortunately I have to get it to work on Eclipse.
Would appreciate any pointers you may have on the issue!
You will need to install JDK version 1.7. Android doesn't support JDK v1.8 yet. You can get the latest JDK v1.7 from here.
Also, when you update your Android SDK, you must also update your Android Development Tools (ADT) for Eclipse at the same time. If you don't, you'll get all sorts of errors.
UPDATE: As of April 27 2015, Mac® OS X® version 10.9.5 and JDK version 1.8 are not yet supported by Android SDK. See here for more info.

no ManiActivty.java, acticity_main.xml, nor R.java ( when creating new android application project )

When I tried to create a new android application project, it didn't create ManiActivty.java, acticity_main.xml, nor R.java (there's only BuildConfig.java on the gen package)
and the AndroidManifest is like this:
http://i.stack.imgur.com/r8mIR.png
I've tried almost everything (checked that the Android Private Libraries and Android Dependencies in the java build path are checked, deleted gen and cleaned the project, restarting eclipse, reinstalling eclipse, tried with different Minimum Required SDK(with or without appcompat_v7) , but NONE of these were useful...
My ADT version is updated.
On the SDK manager I installed:
Android SDK tools Rev. 24
Android SDK Platform-tools Rev. 21
Android SDK Build-tools Rev. 21.1.1
Android 4.0 (API 14)
Android Support Repository Rev. 9
Android Support Library Rev.21.0.2 (also tried to reinstall it 2 times)
Google Repository Rev. 14
Google USB Driver Rev. 11
Windows 7 (64-bit)
and I have the latest version of java, and eclipse version: Luna Service Release 1 (4.4.1)
please help.
Please note that ADT is no longer officially updated. Instead of solving this particular problem, I would suggest switching to Android Studio (which is now version 1.0) for stability and support.
And to be less official - leave ADT alone, it is outdated and will cause you more problems in the future. As an experienced developer I strongly encourage you to switch to Android Studio, you will not regret. Also, you may still use your existing SDK files with Studio, you won't have to download all this again :-)

IntelliJ IDEA 12 - Incompatible Android version error

I'm starting out Android development with IntelliJ IDEA 12.0.
I have installed and configured JDK and Android SDK. I wanted to target Android SDK 2.3.3 so the SDK is configured as in the screenshot.
When I try and run the project though, I'm getting the following error:
android-validator: [untitled] Incompatible version of Android SDK Platform-tools package. Min version is 11. Please, update it though SDK manager
Followed by
android-validator: [untitled] Incompatible version of Android SDK Tools package. Min version is 19. Please, update it though SDK manager
I wasn't able to find any information on this and not sure what this means. Any pointers is appreciated.
--New project config--
--Install Android Packages--
android-validator: [untitled] Incompatible version of Android SDK
Platform-tools package. Min version is 11. Please, update it though
SDK manager
Because you have revision 10 and the IntelliJ IDEA tool needs revision 11
android-validator: [untitled] Incompatible version of Android SDK
Tools package. Min version is 19. Please, update it though SDK manager
Because you have revision 16 and the IntelliJ IDEA tool needs revision 19
The mentioned minimal revisions are requirements for IntelliJ IDEA to provide Android tools and to compile your applications. You should definitly launch again the Android SDK Manager and check the Tools folder, as on your screenshot, and click on "Install 2 packages".
I had the same issue. I updated "Android SDK Platform-tools" but it didn't work.
After that I realized that in the past I set c:\Android\android-sdk as the SDK folder. But the SDK manager was updating the folder named c:\Documents and Settings\my.user\Local Settings\Application Data\Android\android-sdk So IntelliJ was checking the old folder.
Problem solved after changing to right folder. So be sure that you set new folder if you have such issue. Check help documentation for setting the SDK folders: http://www.jetbrains.com/idea/webhelp/configuring-global-project-and-module-sdks.html

unable to get ADT plugin for Eclipse Helios: Conflicting Dependencies

I have Eclipse Helios 3.6 and it was working fine for my Java based web-apps.
But now i thought of developing android app for the same I finished downloading Android SDK and was on the verge of installing the ADT in Eclipse for Windows 7 from this site->
https://dl-ssl.google.com/android/eclipse but it didn't worked.
After putting above address in Install a new software under eclipse it shows both Developer tools and NDK plugins and then on clicking NEXT it is showing :
Android DDMS 21.0.1.v201212060256-543035
Android Development Tools 21.0.1.v201212060256-543035
Android Hierarchy Viewer 21.0.1.v201212060256-543035
Android Native Development Tools 21.0.1.v201212060256-543035
Android Traceview 21.0.1.v201212060256-543035
Tracer for OpenGL ES 21.0.1.v201212060256-543035
all selected but in with error :
"Cannot complete the install because of a conflicting dependency.
Software being installed: Android Hierarchy Viewer 21.0.1.v201212060256-543035"
so unable to proceed.
I tried all possible solutions like trying updating Eclipse but that too started showing error.
I advice you to use the latest version of eclipse here and the latest version of SDK and ADT

Categories