I am used to developing for android with android studio. But since my Project (OCR) doesn't seem compatible, I wanted to switch to eclipse.
Since the eclipse version downloaded with the SDK was outdated, I dowloaded the newest Eclipse for mac.
After linking it with my NDK and SDK it had a problem, so I used copied the code (not the files) from an working android studio app into the right files.
My Problem is that eclipse can't recognize R. And I can't run my project.
So again, I am running an mac with newest NDK and SDK as well as freshly dowloaded eclipse.
Eclipse didn't recognise R. because it can't build it. R. sometimes can't be generated from xml problems (like layouts or androidManifest). Last thing is the project.properties file. Try modifying it using only the neccessary things.. (target= ... and your references).
Related
I have a cordova project in visual studio. When running the app onto a device the error
Could not find gradle wrapper within Android SDK. Might need to update your Android SDK
keeps popping up. I have android studio, android sdk(updated) installed. The adb is working and detecting my device all fine. I have searched a lot and most of the answers that i have found are telling to download the sdk once more. But i already have it on my machine.
Visual studio is looking for the gradle wrapper in the location
path-to-sdk\tools
folder. So what i did is copied the template folder from
C:\Program Files\Android\Android Studio\plugins\android\lib
and pasted that folder into the above sdk tools folder. Re-ran the project. Fixed it.
I am trying a sample app for Tizen Wearable SDK but the IDE does not seem to be configured properly. It reports imports could not be resolved library and the samsung android libraries. My guess is these dependencies need to be added to the project's path somehow.
I tried adding external classes from the Tizen Wearable SDK
UPDATE
I have tried to install the ADT Plugin but I get stuck on the license screen
You don't have the Android plugins for Eclipse installed from what I can see on your preferences panel. The Tizen IDE, out of the box, only supports the Tizen Wearable build.
You will need to install the Android Development Tools (ADT) plugins for Eclipse and then point the preferences at the SDK. That will clear up your Android SDK build errors. Then you just need to add the Samsung SDK jars to your project if they still fail to build. The samples should already have the links to SDK jars in them, so just getting the plugins installed is your first step.
Here's a blog post I wrote on the subject a few months ago. Skip to the TL;DR part. But, the short answer is, add the ADT plugins by adding a new install site that points to
https://dl-ssl.google.com/android/eclipse/
You will not be able to install the Native Development Tools component due to a conflict with CDT versions, so uncheck that.
You can try using the Tizen IDE to create the HelloAccessoryConsumer (wearable part) and a separate Eclipse IDE with ADT plugin to create the HelloAccessoryProvider (Android part). Then add the .wgt file which is generated in the HelloAccessoryConsumer project to the assets folder in the HelloAccessoryProvider project.
First of all, i know this question has been asked a lot, but nothing seem to be working for me.I have installed Eclipse ADT On MAC 10.9.5 from android.developer.com and have installed latest Android SDK tools, and all other platform and tools required for Android 5.0, android 4.4W and Android 4.4.2. I have also installed Android support library. But when i try to run the project with the default properties,
http://postimg.org/image/4lf8ayl99/
Minimum Required : SDK-API8:Android 2.2(Froyo)
Target SDk-Android; 4.x(L Preview)
Compile With ; API 21: Android 4.x( L Preview)
It always give me error,
The container 'Android Dependencies' references non existing library '/Users/xxx/Documents/workspace/appcompat_v7/bin/appcompat_v7.jar'
I went through all the solutions listed on web and on this website too, but nothing worked for me.
appcompat_v7 library gets generated, and then i click on add to build path for android-support-v7-appcompat.jar and android-support-v4.jar, and then from build path add the two libraries and untick android dependencies and add the library to my project from android library. From other posts i get to know that after clean and build appcompat_v7 library project , appcompat_v7.jar would be generated in bin directory, but it doesn't happen in my case.
Please help. I have spent too much time looking for the solution, but didn't find any.
I finally found the solution, I had to update the jdk to 1.8, The jdk installed by default by eclipse ADT form android.developer.com doesn't seem to be updated and Since API 21 requires jdk 1.7 or above thus i had to install it from JDK official website http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html. Finally i got the support library appcompat_v7 working.
I had the same problem and I tried and after that message I got another from the res folder. Anyways what I did was switch work space and it worked fine . it should create those files for you as long as you downloaded the extras from android manager downloader.
I have an Android SDK which I keep updated with the tools and platforms that I need,I recently felt that it was time to migrate to Google's new Android Studio IDE after Eclipse destroyed my workspace for the zillionth time,instead of unzipping Eclipse I downloaded and installed Android Studio and tried to import a project,it looks like the IDE comes with an SDK of it's own.I would like to add path to my SDK folder and my NDK folder as well.
You've got SDK manager just as in ADT. It didn't let me change the SDK directory, though.
So, go to "Project Structure" menu (or "Other Settings/Default Project Structure"), and set the home path for Android SDK. here is a bit outdated tutorial: the GUI has changed since v.0.1, but the substance is still completely relevant.
A week ago, v.0.4 preview has been released - maybe the menus have been shuffled a bit again, I don't know.
PS: note that NDK integration is still not official, but some workarounds have been accumulated here.
I've been using Netbeans 6.9 quite happily with Android for a few months but I completely wiped my SDK yesterday and now, after reinstalling it, I can't get Netbeans to create the Android platform. I can select the platform okay but once I press FINISH nothing ever appears in Netbeans. I've even re-installed Netbeans but no joy.
Could someone post the contents of their platform XML file for Android? I'm thinking I can just enter this file manually and have Netbeans pick it up.
Any other ideas greatly appreciated!
I had the same problem with netbeans 6.9.1, mine was related with some incompatibility between 32bit and 64bit java.
I have Win7 x64 and also had java x64. removed x64 java and installed x86 java without reinstalling netbeans probaly caused the problem
This solved it for me.
uninstall netbeans
uninstall all java jre and jdk's
reinstall 32bit java
reinstall netbeans
reinstall nbandroid
I can only recomend you use Eclips for developing for android.
2 major adventages are:
1. Easly install JDK wich is spesific for eclips.
2. You get an emulator built in, making debuging even fun ;)
on one forum i found:
simply cut and paste the yourandroidlocation/platforms/android-1.1 (what you prefer, your current android platform) folder to the yourandroidlocation/. no files will be overwritten and now the android.jar and the other folders are on the right position.
it solve for me....hi
Note that this whole thread is obsolete now. The current version of android plugin for NetBeans ( http://www.nbandroid.org ) does not register Android platform in Java platform manager. Instead it looks into .properties files in your project to find Android SDK location and target platform that is used to build your project.
-Radim