Unable to find Java & Android SDK - Google Play Services in Unity - unity3d

I downloaded unity package for google play services. After installing the package I opened up the window for Android configuration but after putting in the Resource definition, I get several errors: that Java and Android SDK is missing and that XML resource is not correct. I have the latest Unity version and when installing, it also installed Java and Android automatically, I didn't need to download any JDKs from java and android websites.
What am I missing??

If you go to "Edit" -> "Preferences" -> "External Tools" and scroll down to Android, there's a text field to enter the path to your SDK. There's also a "Download" button next to the field that will take you directly to the download location. I recommend getting all 3 (SDK, JDK, NDK).

If the problem occurs sometimes even you already locate java sdk, just go to Assets -> External Dependency Manager -> Android Resolver on unity then click Resolve. Just click OK when finished now you can build apk/app bundle without java sdk locate error.

Related

Importing Eclipse project (with third-party libraries) to Android Studio 1.0

I have developed an Eclipse project (a game based on libgdx). I have included LibGdx library, Facebook SDK and google-play-services_lib. My game uses facebook "share" function and AdMob ads.
After developing it, I made documentation for this project, and I included the link for downloading Eclipse+adt for my client. But when he had followed to this link, he was forced to download Android Studio, not Eclipse. And now I don't know how to import this project to Android Studio.
I tried to import, it was imported well with right project structure.But when I click "Run" button, there are many errors occurs. All third-party libraries are unknown for Android Studio, many classes are not found, etc. I don't know how to setup Android Studio for LibGdx and AdMob (google play services).
You need to include the 3rd party libraries as dependencies in your build.gradle file.
The process is explained very well in the documentation.

ADT opens as Eclipse?

i downloaded ADT bundle for linux 64bit from developers android website
also downloaded adt plugin zip and installed developer tools form HELP --->> INSTALL NEW SOFTWARE.
but when i open eclipse from the folder it opens as eclipse juno (i.e.the splash screen) and not as Android Developer Tools.
can anyone tell me what is wrong or am i openeing it the wrong way?
and i am using fedora 20.
Not sure if I understand your question correctly but ADT is mainly context menus integration in Eclipse. If you are in the Java perspective you can see on the Window menu the options Android SDK Manager, Android Virtual Devices, etc. You also have a perspective to debug called DDMS. You can create new project with template Android Project (or import Android project from existing sources). If you right click in a project you also have and Android Tools context menu, etc.

No "Blank Wear Activity" template shown for Android Wear on Eclipse

I'm trying to set up Eclipse to develop for Android Wear by following this tutorial:
https://medium.com/#tangtungai/how-to-develop-and-package-android-wear-app-using-eclipse-ef1b34126a5d
I've made it to the step where one creates the new Android Wear Project and selects "Blank Wear Activity". On my setup, there is no "Blank Wear Activity" in the Create Activity dialog. It appears Eclipse is not finding the template to add to the list here.
I've tried this with Eclipse Luna downloaded from Eclipse.org, with ADT then installed via Eclipse's "Install New Software..." menu. I've also tried it on the pre-configured Eclipse Juno you can download from developer.android.com that has ADT pre-installed.
I can use the Android SDK manager to pull down the Android 4.4W platform stuff as well as Android Support Library and Google Support. I can find the wearable-1.0.0.aar and unpack it. I can import that project and all seems well. But I never wind up with the "Blank Wear Activity" template as an option. I've tried with and without installing the L Preview SDK.
All of this is on Ubuntu 14.04.
Since the latest ADT (23.0.2), there isn't any wizard to create wear activity.
So you can try to download this Black Activity For Android Wear and start from there.
https://github.com/tangtungai/Android-Wear-Black-Activity-Template
Hope this help.
The templates are provided by Android Studio, so you can't find it in SDK or your ADT.
You can find it in AndroidStudio/plugins/android/lib/templates/activities
Eclipse uses for its templates the folder <android-sdk-folder>/extras/templates/.
The language used is the same, but I don't know if they can works on Eclipse without changes.

Adding Java ME platform in NetBeans

I installed NetBeans 7.2.1 with JDK 7 and the plug-in - Java ME SDK 3.2 (it has Wireles Toolkit 2.5.2 inside).
I try to create new project by clicking File/New Project/Java ME/Mobile Application. Then I click next. In next window the message:
Every CLDC project needs to have CLDC compatible SDK/platform/emulator assigned to it.
Pressing Install SDK/Platform/Emulator button opens Platform Installation wizard, which allows you to "add platform".
I tried clicking Install SDK/Platform/Emulator button and I tried then indicating the folder, where Java ME 3.2 is installed. It can recognize the emulator, but the project cannot be started.
After the choice, there appear several options. How to make in new version? Most of the thing in Internet are connected to old version.
Have you tried using this Oracle tutorial online? It's fairly current (September 2012). There's also an even newer one just posted here.
If you install the Java ME SDK that way, you should have the proper Java Platforms there already. It's hard to read your screen capture, but it doesn't look like the proper Java Platforms are there. I would try again, following the steps in the link I provided.
I just tried it, with NetBeans 7.2.1, and the Java ME SDK 3.2. The version of NetBeans I used was from this download page and was the Java EE version.
One easy thing to miss in the steps below is that on this download page, you need to download both the Java ME SDK and the Java ME SDK Plugin for Netbeans. Not just the plugin. This applies for the installation instructions in either of the two links I posted above. Install the SDK, and not just the plugin.
In case that link later changes/dies, here are the important steps:
How to integrate Java ME SDK 3.2 with NetBeans
By SungmoonCho on Sep 25, 2012
Many people like to use Java ME SDK with IDEs. We provided instructions on how to integrate the SDK with NetBeans through the download page, and also through the release note, however, let me explain it here once again with some screen shots.
Download Java ME SDK and NetBeans plugin from here.
Install Java ME SDK first. You will have the emulator and the runtime on your machine. Also please unarchive the NetBeans plugin somewhere.
Launch NetBeans.
Go to "Tools" - "Plugins".
Check out the "Installed" tab. Check "Show details". If you see the previous version of Java ME SDK Tools installed already. Check those to uninstall them.
Go to "Settings" tab.
Click "Add", and provide the location of NetBeans plugin. In my case, it is "file:/C:/Users/sungcho/Downloads/nb-me-sdk-plugins-uc/updates.xml". Don't forget to add "updates.xml" at the end.
Click "Okay"
Click "Available Plugins" tab.
If you scroll down, you will see three Java ME SDK Tools. Check "Java ME SDK Tools" plugin. Also check others as you desire.
Follow the instruction and install them.
Restart NetBeans
That is it. Done. Now you will see Oracle Java ME SDK 3.2 in your Java Platform list.
Finally, I configured it. I had plug-in without SDK:). I uninstalled plug-in. I installed Java ME SDK 3.2, then I installed plug-in. I installed SDK not in the default path. I indicated platform using "Add platform" button. I indicated 2 platforms and now the project can be run in the emulator.
Here are platforms:):

Trouble installing Google plugin for Eclipse: Unable to get past accepting licenses

I just downloaded Eclipse Indigo for Win XP. After successfully installing the M2Eclipse plugin, I tried to install the Google Plugin for Eclipse, using this URL as my download site -- http://dl.google.com/eclipse/plugin/3.7. When prompted, I selected all packages to be installed. Android said it couldn't be found ...
(com.google.gdt.eclipse.mobile.android.feature.feature.group 2.4.2.relr37v201110112027)
Missing requirement: Android Cloud Tooling 2.4.2.relr37v201110112027 (com.google.gdt.eclipse.mobile.android 2.4.2.relr37v201110112027) requires 'bundle com.android.ide.eclipse.adt 12.0.0' but it could not be found
Cannot satisfy dependency:
From: Google App Engine Tools for Android 2.4.2.relr37v201110112027 (com.google.gdt.eclipse.mobile.android.feature.feature.group 2.4.2.relr37v201110112027)
To: com.google.gdt.eclipse.mobile.android [2.4.2.relr37v201110112027]
so I skipped it to get to this screen.
http://screencast.com/t/XK81svWmcMr
When I clicked "Next", I was greeted with a screen that asked me to accept License agreements. Even though I accepted everything, the "Finish" button was never enabled ...
http://screencast.com/t/JIEVqGKveMeU
Can someone tell me how to get past this so I can install the Google Plugin tools for Eclipse?
Google has added the Google App Engine (GAE) Tools for android in it's Google Plugin for Eclipse (GPE).
This is for integration of App Engine with Android, the fact that you are getting that error is because Android SDK is downloaded seperately, and in this case GPE expects to find that SDK on your system. To fix your problem just exclude GAE Tools from the list of modules inside GPE at the module choice screen(The screen before Install details).
As I you have to install ADT Plugin for Eclipse first: http://developer.android.com/sdk/eclipse-adt.html
Then you'll be able to install "Google App Engine Tools for Android 2.4.2"