IntelliJ IDEA CE confliction issue between Android SDK and JDK - java

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?

Related

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

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.

Eclipse - Java - Parsing Data for android-23 failed

I have an Android project based on Cordova (Phonegap), which, for security reasons, had to be updated to Cordova 6.0.0 and Android platform 5.1.1.
After performing the Android platform update, I noticed that the API for both - the Android project and CordovaLib had been changed to API 23 (Android 6.0) automatically. I installed all the other files of Android 6.0 via SDK Manager.
I can't seem to build the project any more because the CordovaLib project doesn't have the .jar file hence, the it never gets build to begin with.
Here are some additional information about my environment -
JAVA-HOME = jdk1.7.0_79
Eclipse->Widows->Preferences->Java->Compiler = 1.7
Eclipse->Widows->Preferences->Java->Installed JREs = jdk1.7.0_79
Running Eclipse Kepler Java EE IDE for Web Developers
I restarted Eclipse and got this error -
Parsing Data for android-23 failed
Unsupported major.minor version 51.0
Thanks.
So apparently, anything > API 21 is not supported by Eclipse ADT anymore. Google moved to their own IDE, Android Studio. Installed SDK for API 23 and used Android Studio and everything worked fine.

How to develop Android apps with Java 1.6?

I have Java 1.6 on my machine and I cannot (not allowed) to install Java 1.7. I've tried Android Studio and the Eclipse Android plugin. Both require Java 1.7.
What do I need to do to develop Android apps with Java 1.6?
I know in Android Studio you can set the Java SDK in file -> project settings -> project - > edit under Project SDK
Not sure if you need to download a different Android SDK to fit the Java version, but you can start there if you haven't already.
In Eclipse, just open Window/Preferences:
and choose your favourite Java version.

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 :-)

Error when installing Android ADT on Eclipse

I am trying to install the android ADT for Eclipse from http://developer.android.com/sdk/installing/installing-adt.html
And get the following error:
If it helps, I am running windows 8.1 and using the latest version of Eclipse. Thank you.
from the Icon of your Dialog I see that you are running Eclipse 4.4. Unfortunately, Android ADT doesn't seem to be supported by that version. Check out this thread as well: Google adt/gwt support for eclipse 4.4 (Luna)

Categories