I followed the tutorial from HoloEverywhere in the Git page:
Android Studio / IntelliJ IDEA
Checkout from Version Control - Git
Typo in Repository URL: https://github.com/Prototik/HoloEverywhere.git
Press 'Clone', wait until repository checkout
If you use Android Studio, then just click 'Yes' on the proposal to open a project. Otherwise in IDEA press Import project and specify path to downloaded repo, choose gradle model and press next.
Mark checkbox Use auto-import and click finish.
Kiss a Google and Android devs team!
Read this basic migration guide.
But I can´t make it work. I try to use the same method like ABS, but it doesn't work.
Any suggestions to make it work?
Actually, it's quite easy. Just download the source code. Use Android Studio to import HoloEverywhere project by selecting the build.gradle file in the root folder and you are all set. Android Studio will build it automatically. If you want to run, then you have to setup Android Studio to do so, you can refer to Android Studio documentation.
Related
Whenever I clone a Google sample repository from Github, the Android project sidebar is completely empty (No app folder and an empty Gradle folder). I usually encounter this problem when Android Studio asks me to provide the Gradle Home path when importing. I would highly appreaciate any help regarding solving this problem.
Android studio 3.0 project with an empty Android folder view
E.g. cloning Android vision API Samples
When you are importing the project into Android Studio (like in the following picture), are you importing the entire Github repository or just a specific vision sample? You should be doing the latter.
Example of importing project into Android Studio
Let me know if that fixes the problem.
i installed the following plugin to my cordova project to receive push-notifications (and followed the given steps):
github.com/phonegap/phonegap-plugin-push
I also installed all needed resources by the sdk manager (extras-> google play services, support repository+libraries etc.)
But unfortunately i get an error in eclipse:
The packages com.google.android.gms.gcm, com.google.android.gms.iid, android.support.v4.app are missing somehow.. (or cannot be resolved)
i don´t know what i´m doing wrong..
is there any step-by-step tutorial for implementing the push-plugin in a cordova 5 app?
or is there any solution to this?
thanks!!
Screenshots:
http://abload.de/img/unbenannt-11qbf4.jpg
and
http://abload.de/img/unbenannt-2i7ozz.jpg
May be it would help you.
It is asking to add v4 support.
Try this:
Right click on you project in eclipse
Then select "java build path"
Click on "libraries tab" then click on "Add external jar file"
now you will get this v4 jar file in C:\Users[username]\AppData\Local\Android\sdk\extras\android\support\v4
NOTE : if you cant find the AppData folder then make sure to change hidden
settings.
Recommended to start using IDE Andriod Studio for Phonegap to prevent further issues. Android SDK has changed to suit Andriod Studio. I have build a clean project and paste over the index.html in Andriod Studio. No errors at all and gradle will help build all the projects file with 1 click!
I am trying to add gesture detection capabilities to my application, and I found the following library. However, in its instructions, it says the following:
I primarily use Eclipse for development therefore the instructions below are for Eclipse. I plan to add instructions for Android Studio later.
Clone the repo: git clone https://github.com/kritts/HandWave.git
Import TouchFreeLibrary as a library
Click File | Import | Android | Existing Android Code into Workspace
Select the TouchFreeLibrary project
Click Finish
Right-click on TouchFreeLibrary, then click Properties
In the project properties window, click the Android section
Check the Is Library checkbox
Add a reference to the TouchFreeLibrary project (click Remove to remove any broken references, then click Add to add the correct one)
You will also need to need to add OpenCV as a library. Detailed instructions on how to do so can be found here.
It's up to you which version of OpenCV you'd like to use (all of the recent versions should work just fine), but the 2.4.3 is the version I used during development.
However, I am not sure how this would work with Android Studio.
All answers are appreciated
Building off of my previous answer (which by the way I apologize for not going into more depth) the original HandWave project has been forked and modified and can now be implemented within Android applications. It can now be imported into Android projects just as you would import any other library. Note, however, that you will also need to download OpenCV. Detailed instructions on how to do so can be found at HandWave's repo.
There is now a version of HandWave that works on Android Studio. You will need to import OpenCV for Android as a library though, and change the OpenCV compile path in the Android Studio version of HandWave to the version of OpenCV that you imported.
https://github.com/Manishearth/HandWave/tree/androidstudio
I am trying to use an external eclipse project in android studio. I did n't find any nice tutorial.
"Also the docs says, If you want to import this project in Android studio, here you can download build.gradle."
Can you please guide me where/how to use this build.gradle?
Step by step procedure will be appreciated?
Open Android Studio.
Click 'File'.
Click 'Import Project'.
Choose the project to import.
It will ask for a destination to save the project as Android
Studio's.
Save it and it will automatically convert the project
Android Developers website has a quick migration guide.
General Android Studio information is available here.
I am not a dev, but have some dev experience. I have never used Android Studio before but I wanted to look at an example app. I picked one I am very interested in, but it gives me nothing but grief just trying to import it.
https://github.com/AltBeacon/android-beacon-library-reference
Notes:
I am using the latest version of Android Studio. (1.0.2). I have added in all the SDK files needed I think.
I have downloaded and un-zipped Gradle 2.2.1.
I am running Ubuntu 14.04.
I have dealt with Eclipse for Android previously and was able to
hack someone else's code to suit my needs and actually deploy an unsigned apk.
The readme/install directions at the github don't really help a noob
like me.
Install:
I have extracted the project from the Download Zip link.
For the actual import into Android Studio I choose "Open an Existing
Android Studio Project" - because it looks like one.
I then choose the root directory created by unzipping the zip file,
in this case it is named "android-beacon-library-reference-master".
But it seems to select the project's Gradle subfolder (/gradle) for the project! Which I'm quite certain is invalid. I cannot seem to get it to use the root
folder.
What am I missing? Or is this not the correct way to "import" this particular app? Is this app not compatible with AS 1.0.2?.
TIA!
In Android Studio, close any projects currently open. You should see the Welcome to Android Studio window.
1.Click Import Non-Android Studio project.
2.Locate the project you exported from Github, expand it, select the build.gradle file and click OK.
3.In the following dialog, leave Use gradle wrapper selected and click OK. (You do not need to specify the Gradle home.)
Android Studio properly updates the project structure and creates the appropriate Gradle build file.
Can you try "Import Project" instead "Open Project". Thanks.