Error with compiling Hello world Android App Build path - android

hi guys am going through the tutorial on building a hello world app from here
http://developer.android.com/training/basics/firstapp/running-app.html
I have tried everything that i could find on this forum.
adding the libraries
adding support libraries as a project using the following link
https://developer.android.com/tools/support-library/setup.html
nothing seems to do it for me.
I am trying to run the basic tutorial app and cant seem to complie
And I cant seem to upload a screenshot as well .. :(

first it is not code problem.
problem is in library had you using appcompact library if not than add it in this project and see.
or right click on project -> Android Tools and select Add Support library and check.

Related

Building a Github library project locally in Android Studio 2

Like many a newbie I've been blindly clicking away in Android Studio 2 stumbling my way through building an app. Most of it just works so I've not really got my head into gradle.
Any road up, I've wanted to link into Strava and discovered that there were a couple of guys who had done the heavy lifting but on using a specific project, at the vital point of getting the data there is a coding problem. I thought the best approach would be to solve the problem and feedback.
So I downloaded the GitHub project in a zip and tried to do a standalone build and then things just didn't work. I think the basic problem is a) I don't know what I'm doing, and b) presumably the build on GitHub was done using different tools that are not set up for Android Studio.
So given that there is a working project on GitHub (specifically https://github.com/SweetzpotAS/StravaZpot-Android ) what are the dummy steps for getting that project to build locally in AS 2?
The problems I had are that on trying to open the project picking up the gradle file (couldn't find anything else to open in the root directory, the build didn't want to work - complaints about mixed projects. I stripped out the testing app and just tried to build the lib, but I didn't get a working lib in the output directory, just 2 25k stub aar files. Ideally I want to have that as a standalone project to build a local lib and then use that lib in my project (which I reckon is within my abilities!). Run out of Google search ideas!

How to link DroidAR's ModelLoaderAdapters to my project in android studio?

Hi I'm currently trying to build an app by using the location based ar provided by DroidAR but I could not figure how how could I use the Model Loader Adapter provided by DroidAR. The demo they have given is created in Eclipse but I'm using the newest version of Android studio. If anyone has tried out, could you please explain to me what should I do now :( thanks
if you have the eclipse project you can import it in android studio, here is a link
but if you have its jar file you can add it to your project like this

Android Studio Error while importing eclipse project

I started my android development with Android Studio so I do not know much about eclipse. A client has sent me his source code for an android app that needs editing and while trying to import it I am getting the following error.
Some one please guide me to a solution, I really need it right now.
Using android studio 2.1.2 with JDK 8 installed.
This is the project.properties file
Thanks!
Ok so turns out the app was using a "pullToRefresh" library that was missing as a deliverable to me. I did not have an experience of working with external libraries yet so took me some time to identify that.
I downloaded the library and gave it the correct path in "project.properties" file. Then simply imported the project to Android studio and it is working absolutely fine

Cant run simple android program using Eclipse

I am studying Android now and I am really a newbie in this.
I am using Eclipse with Android. I already installed all the files under Android 5.0.1 (API 21) and also all the Tools. Then I try to create my simple "hello world example" but I got a lot of errors.
Here are my errors:
Can you help me with this?
It seems you have some problems with styles, anyway i suggest to use Android Studio if you start from the beginning.
Make sure you've added AppCompat on below picture:
That problem comes from AppCompat as you can see, seems like that library has a problem and you should follow this tutorial:
Following are the steps:
Paste the android-support-v7-appcompat.jar that you have downloaded
in libs folder of your project.
Right click on your project, select Build Path -> Configure build
path. Select Library Tab then Add Jar option and browse your
recently added v7 jar and click OK.
That should fix the problem.
Android actionbar how to add supporting library v7 appcompat for Eclipse
And i suggest you to use AndroidStudio.

OpenCV on Android Using Eclipse

I'm having a hell of a time importing OpenCV into my Android project. I've already tried this tutorial:
http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package.html
and it did not work because Eclipse would not recognize the existing projects in the directory. So after much searching I came across this trunk:
https://code.ros.org/svn/opencv/trunk/opencv/
and was able to import it into my workspace in Eclipse. Eclipse now recognizes the sample projects, but now the problem is that there are no OpenCV library files. So all the calls to import different classes result in errors. Shouldn't there be a opencv.jar somewhere? I've seen various posts that mention having to build the library but unfortunately I don't have the slightest clue how to do that. I need something with step by step instructions. I'm running Windows 7 64-bit.
Thanks!
You should download the latest OpenCV 4 Android here:
http://opencv.org/downloads.html
And read these tutorials to get you started (in this order roughly):
Introduction into Android Development
OpenCV4Android SDK
Android Development with OpenCV
OpenCV4Android Reference
If you want to use OPEN CV in your android apps, for example if you need to read some strings from an image in your android and you are new in using OPEN CV. Then download the pre-built OpenCV library for Android from here:
http://sourceforge.net/projects/opencvlibrary/files/opencv-android/2.3/
After downloading, import OpenCV-2.3.1 into Eclipse using File-->Import...-->General-->Existing Project Into Workspace.
In your project's properties, Under Android, add the OpenCV2.3.1 library (press Add.. on the right and select OpenCV2.3.1).
Good luck!
You might want to take a look at this project: https://github.com/billmccord/OpenCV-Android
I was able to run opencv applications on my android phone with the help of this port.
installed the Win-superpack?
I recommend getting the latest .tar, extract and use it. Worked for me.
I posted about this on a duplicate question. Make sure you have the android NDK installed! Or, consider using JavaCV instead. It is much easier to install.

Categories

Resources