How to add Android-wheel library(https://github.com/chemalarrea/Android-wheel) to android studio?
Its as simple as other library integration in android studio.
I've listed steps below just follow it you will get android-wheel lib support to your studio project.
1) Download library from github.
2) go to android studio project File -> new -> import module.
- choose android-wheel library.
after above steps library should appear within android studio project explorer.
now you have to add dependency for that follow below steps
1) Right click on your project -> choose Open module settings -> from left
panel choose your project (not android-wheel library)
2) after choosing your project go to dependencies tab in right side frame.
3) press '+' and choose module dependencies and select android-wheel lib.
That's it...
Happy Coding! :)
Please find how to import any module to android studio project from here :
Please follow below steps :
Click on File -> New -> Import New Module.
Add Souce Directory path as library root level path.
Click 'OK' and 'Finish'.
Go to project setting -> Modules -> app -> dependencies -> click in '+' ->
add module ->add wheel module here.
Now build your project and run.And if you found any error let me know.
Please refer below link for reference.!!
https://stackoverflow.com/a/32118213/4018207
Thanks
Related
I'm trying to add that library to my android studio project
enter image description here
How can i do that ?
Appreciate any help !
File -> New -> Import Module...
Select the source directory of the Module you want then click Finish.
I struggle to import library 'PageSlidingTapStrip'(https://github.com/astuetz/PagerSlidingTabStrip).
I found this question(How to import eclipse library project from github to android studio project?), and I follow this solution.
cf)I'm using win 8.1 , android studio version 0.3.6
First, build new project like this condition.
Second, go to File -> New Module click, create new module as android library and make condition like this.( Unchecked create custom launcher icon, activity )
And this part I got a first question. Which version should I choice version about 'Minimum required SDK' , 'Target SDK', 'Compile with'? Just Follow project version? (image show default value when I create this window first.)
Anyway, I progress under condition ' Minimum required SDK : API 9 / Target SDK : API 19 / Compile with : API 19 '
Third, delete files under 'Project/PageSlidingTabStrip/src/main/' and copy folder&file under external library 'res', 'src', 'AndroidManifest.xml' and move into 'Project/PageSlidingTabStrip/src/main/' then renamed src to java.
And then project & folder become like this. (what I followed question as , told me copy and move file 'ic_launcer-web.png' apart from 'res', 'src', 'manifest' , but I can't find that file)
Fourth, go to 'File -> Project setting -> Module -> click project module -> '+' button -> select Module dependency' then apply.
After that, I face this error and cannot resolve R.
And I can't go next step, can't finish import library.
What should I do?
Is there any other solution?
Thanks for seeing long question. I hope to get a solution!
I also use the PagerSlidingTabStrip Project in my app and everything works fine.
I'm not sure if it's already possible to add a library project via the IDE (-> without any problems).
Please try to add the library project by editing the gradle files like this:
first delete your module PagerSlidingTabStrip
then create a folder in your root project directory (-> NewOne) named 'libs'
copy the complete folder 'library' of the PagerSlidingTabStrip project on git into 'libs'
rename the folder 'library' that you just copied to e.g. "PagerSlidingTabStripLibrary" (just to avoid confusion) -> after the renaming you should have the path: "NewOne/libs/PagerSlidingTabStripLibrary"
now add this library in your settings.gradle with the following command:
include ':libs:PagerSlidingTabStripLibrary'
go to your build.gradle file of your AppProject aps and add the following line to your 'dependencies':
compile project(':libs:PagerSlidingTabStripLibrary')
at least you have to sync your gradle files: Tools -> Android -> Sync Project with Gradle Files
Please try this. If you get errors please post the log file.
For update up to Android Studio 1.2.1.1
There are basically three types of dependencies which we have to add in project of android Studio
Add Normal Dependencies like Support files
Right click on project->open module settings
Select dependencies->Now press right "+" icon button ->Select
library Dependencies
Enter Name and Search
Select file and press ok button.
Add Git Hub Dependencies
Find the dependencies of git repository for example compile 'com.jakewharton:butterknife:6.1.0' from https://github.com/JakeWharton/butterknife
A. open build.gradle(module:app) file
B. Add lines compile 'com.jakewharton:butterknife:6.1.0'
OR
Follow as describe above in Normal Dependencies Step by just enter dependencies in search bar
Add Jar files Dependencies
Right click on project->open module settings
press left "+" icon (insert new Module) button -> Select import Jar or .AAR package->browse Jar file and finish
Now select dependencies-> press right "+" icon button ->Select module Dependencies->select jar files->press ok button.
For what it's worth I had this problem and eventually solved it by consistently using the same sdk version & build tools across projects.
I have just imported an android project and when I am trying to run it it is giving me error on the following imports
import com.google.android.vending.licensing.AESObfuscator;
import com.google.android.vending.licensing.LicenseChecker;
import com.google.android.vending.licensing.LicenseCheckerCallback;
import com.google.android.vending.licensing.ServerManagedPolicy;
Any help resolving this would be greatly appreciated.
You’re getting those errors because you didn’t import the licensing library.
Go into the folder where u downloaded the android-sdks stuff.
So there are 2 things: I) a Licensing Library and II) the Sample Licensing App
I) The licensing library is located in:
UserName/android-sdks/extras/google/play_licensing/library
II) The Sample Licensing App is located in:
UserName/android-sdks/extras/google/play_licensing/sample
OR
In Eclipse, File-> New -> Other… -> Android Sample Project -> (Choose a Target and hit next) -> Google Play Licensing Library
Step 1:
In Eclipse, Go to File-> New -> Other… -> Android Project from Existing Code -> (Locate the library, ie= UserName/android-sdks/extras/google/play_licensing/library)
Step 2:
Once you have the library imported to Eclipse, right click on the package and go to Properties -> Android. Make sure the “Is Library” option is checked.
Step 3:
In Eclipse, File-> New -> Other… -> Android Sample Project -> (Choose a Target and hit next) -> Google Play Licensing Library. My package was named “play_licensing_sample” by default.
Step 4:
Right click on “play_licensing_sample” and go to Properties-> Android -> Add… -> (Choose the Licensing Library u made in Step 2)-> Apply
You’re done!
I ran into this issue when trying to set up my Android project for an APK expansion file.
The following steps resolved it for me:
Add downloader_library to eclipse as a "project from existing source" (it has errors)
Add licensing library to eclipse as a "project from existing source"
Add licensing library to downloader_library project
In android studio 2.2.3 I was able to fix the "package com.google.android.vending.licensing does not exist"
error by:
Right click the downloader_library module from your project view
Select "Open Module Settings"
Select "Dependencies" Tab
Press plus sign + then select "3 Module Dependency"
Select "market_licensing" and press OK.
Original writeup of fix at https://kitefaster.com/2017/02/15/expansion-apk-files-android-studio/
It took me 2 days to resolve this in my project
1)I discovered the folder here
2)created a folder here
3)copied the files (less the UTIL folder) here
enter image description here
In Android studio you need to add a folder same level as java(folder) called aidl. Take a look at the image for more specific.
You can get those file here - https://android.googlesource.com/platform/development.git/+/b8168f27f6f5b6b0ced5ef3210c0e89e8d3a5ae2/samples/MarketLicensing/src/com/android/vending/licensing
You may want to review the steps this link. It goes through the steps of adding it to your Android project, regardless of your IDE. Eclipse will work just fine.
These steps take some time and effort, but I have successfully done this before.
I want to include this library from github to my existing project, I am using eclipse.
Is there any tutorial on how to do this? I am new to android and java development so any step by step help would be great!
note:
I have an Egit plugin installed in eclipse.
Image of the screen when I try to Import the library from the unziped file I have downloaded from the github page:
Also after importing the library as suggested below a library folder created in my Package Explorer but here is what I get:
I have now the library in the eclipse Package explorer, and now I want to add it to my project, so I Right-Click on the existing project and choose properties. Under Android liabrary i click ok and choose the library than ok, nothing happens!
Right click on your project -> properties -> Android -> Add. There you can hose a library.
I got the same problem as yours, please check my answer here , hope it helps.
Extract the zip,
Right click in your workspace -> Import -> Android -> Existing Android Code Into
Workspace -> give path of that project/library
Done.
I have zip file of Android-wheel but dont know how to use it into my project.What possible things can i do, Please suggest me.
You need to unzip the zip file to some directory, and in your android project under build-path choose add external jar, and choose the jar in the unzipped directory.
Update:
I checked Android-Wheel out and you will have to import the project from the google-code svn Android Wheel. In eclipse if you go to create a new project there should be a import from svn option. Once you do and the project is imported you can set it up as a library project and then use it in your app. To do that right click on your project, choose the android tab, and choose add under the libraries section.
I just made this tutorial, hope this helps those who use android wheel for the first time.
http://tolkianaa.blogspot.mx/2012/03/do-not-try-to-reinvent-wheel.html
*Download project with Svn
*Import the project into Eclipse
* Once you import the project in the Eclipse, Right click on the project -> Properties -> Choose android tab and check the IsLibrary option
* Now Right click on your project -> Properties -> Choose android tab -> In the Library section add the imported project.