Can not load phonegap geoloacation plugin. Add .jar to classpath? - android

I have exactly the same problem as mohheadeer. The only difference is that my project did not exist in phonegap 2.9 before.
I'm using android studios and added the path to the downloaded .jar in file->project structure->SDKs but it doesn't solve the problem. Is this the right point to add th path?
Just like mohheader I find this solution kind of strange. Does anybody have another idea? What is the reason for this problem?

By going below mentioned site download the phone gap/cordova latest one
[http://phonegap.com/]
by going to eclipse
Help-->Install New Software
click on Add button,in that paste the url which i am providing and download the phonegap plugins to eclipse
below is the which i'm providing
https://svn.codespot.com/a/eclipselabs.org/mobile-web-development-with-phonegap/tags/r1.2/download
and after that press cntl+N in that choose phonegap for andriod project ,click on Next button
where you can find 'phonegap configuartion' and select the radio button 'enter the path to installed phonegap'
and select the path where the phonegap is placed and after then try to place you code and execute in the mobile/emulator

Thanks for your answer Maneti but it didn't really help me out.
In the end I did it like Roman Nurik and it worked well. I'm not 100% sure if this solution works with the phonegap api but I don't need the api since I develope phonegap apps for ios and android (they support w3c geolocation standard, just like most of the browsers -> http://caniuse.com/geolocation)

Related

Is there any way to generate sequence diagram from android studio

I have created sample android project. Now i have to create sequence diagram for that. Is there any way to automatically generate sequence diagram for android project from android studio.
Finally I got the solution.
I have installed a plugin, previously called SequencePluginReload from Android Studio, now called SequenceDiagram
It is very easy to use and works like charm.
I have downloaded SequenceDiagram suggested by #venkatesh in above answer, but didn't understand how to use it. After searching I found how to use it.
Download the zip file in the above link.
Go to Android Studio>Preferences in Mac. For Windows File>Settings.
Search for Plugins in search box. Then in right click on 'install plugin
from disk'. Browse for the downloaded zip and select it, then Apply and
it will show icon to restart android studio. Do it.
Now go to any method in your java file and right click on it and click on 'Sequence Diagram'. And you will find your diagram in a tab besides Debug,Terminal, version control etc.
I think it's hard to get a sequence diagram. But we can generate a class diagram from Android Studio. We need to install an external plug-in.
Following this references below:
How to generate Class Diagram (UML) on Android Studio

Having trouble setting up Unity 5 with android sdk on mac

I'm trying to create a mobile game for android through unity and running into some difficulties.
When watching tutorials and googling this is what is shown is that it is navigated to through the Preferences > External Tools. But there is no option there for me.
Here is a comparison side by side of how guides say it should look vs how it looks for me.
Any help is appreciated!
Mac unity android sdk path setting
If you have Android Studio installed.
The path for SDK is “/Users/username/Library/Android/sdk”.
But sometimes the “Library” folder is hidden.
To see the hidden files, follow the link: http://ianlunn.co.uk/articles/quickly-showhide-hidden-files-mac-os-x-mavericks/
Or follow the steps below
* Open Terminal found in Finder > Applications > Utilities
* In Terminal, paste the following: defaults write com.apple.finder AppleShowAllFiles YES
* Press return
* Hold the ‘Option/alt’ key, then right click on the Finder icon in the dock and click Relaunch.
Once you done this. Open unity->Unity->Preferences->External tools
In that find SDK path option, click browse, then drag the “sdk” folder which you just opened above in Finder…
Done…
If its still giving error then consider below case:
Sometimes Unity won’t recognise Android Studio’s sdk tools and gives error and ask you to again set the path.
To solve this, download separate sdk tools from Google.
Link : https://dl.google.com/android/repository/tools_r25.2.3-macosx.zip
Once you download the “tools” folder.
Then copy it and replace it in “/Users/username/Library/Android/sdk”.
And try again…
I know this is not written well…but if you are struggling a lot ..if will just give you an correct hint. I struggled a lot for this issue…so wanted to help you all.
Thank you…
I do not know how it looks on Mac, but on Windows you should opt-in Android Build Support when you installing Unity.

Set local documentation for android studio 0.8

I want to set local documentation path in android studio 0.8, but i cant do this. I google this, but i can't find any solution for this problem. Can any body help me please.
Thanks a lot.
I found the solution in Android Studio 2.1 :
First, you have to see which Android SDK you are using from the Project Structure. Currently I am using Android 7.0 because the problem was caused by Android 7.1.1 SDK (I will explain why).
Now, open the Standalone SDK Manager. Find the SDK version that you use, then select Documentation for Android SDK then Install package and you will have a local copy of the docs automatically used by your AS.
As you can see, there is no documentation available to download for Android 7.1.1, that's why Android Studio was loading it from the Android developer website.
So, the solution is to use an Android SDK that has a downloadable documentation.
I had the same problem.Documentation was empty when I used documentation shortcut(ctrl + Q) and I also couldn't change the documentation paths because it wasn't there! so here is the solution:
Delete C:\Users[user name].AndroidStudioBeta folder.(Don't worry it just delete your configurations! ;) )
rename C:\Program Files (x86)\Android\android-studio\sdk (SDK path)folder to something else.
run Android studio and make sure you don't import you configurations.
Now you can change new sdk folder's name back to SDK .
Android studio will ask you new path for SDK ,so you can continue.
If you have downloaded the documentation using SDK manager, it'll get added automatically when you add an SDK in "Project Structure"
In Android Studio, You can verify this by selecting File -> Project Structure -> SDKs (on left pane).
Select one added SDK from the list, Select the tab "Documentation Paths" from right most pane. Check whether the path is automatically added. If not, add it manually by clicking the plus (+) button on right.
The only way I could accomplish this on AS 1.0 is to run local web server (Abyss Web Server) to host the documentation from here (C:\Program Files (x86)\Android\sdk\docs). And use Fiddler as proxy to remap url developer.android.com to 127.0.0.1:8080 (Abyss address), setting Fiddler's address as proxy in AS settings.
Oh, and created a .bat file to run and stop this all together.
Really dirty trick, but the only I found.

Getting error while trying to install Facebook SDK for Android

I'm trying to install the Facebook SDK for Android in Eclipse but I'm failing miserably.Eventually my aim is to develop a web app in phonegap and I know I have to get the phonegap plugin for that once I sort out the SDK. But Im failing at the very beginning.
I'm sure I followed all the steps that was laid out in the FacebookSDK-Android guide.Im attaching screen shot of the errors I'm getting to give you guys a better picture.I'm completely new to Android, any help much appreciated.Thanks
https://vimeo.com/69957972
http://i.stack.imgur.com/XnK4O.png
http://i.stack.imgur.com/etxPh.png
Im am getting the same error just as yours, I tried all the methods you mention here.
Same screens I was getting.
The soultion I got is:
You need to create a new clean workspace before importing the facebook SDK
Goto File>>Switch Workspace
When you enter a new path for your workspace, Now import the Facebook SDK and MUST clean the projects as:
Project>>clean
There will be no problems at all. I am now running my applications in my device too without any issues.
You already mentioned that you follow the official installation guide for the Facebook SDK, but I provided a link just in case:
https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/
When I read the guide, my eye caught onto something which might prove to be the source of the error which you experience:
You must unselect the 'Copy projects into workspace' option so that each of the sample projects retains a correct reference to the neighboring SDK. However, this means that Eclipse creates a link to the project in the SDK installation, rather than making a copy of it.
Please let me know whether or not this helps.
Try this:
Right click on the project in the Package Explorer.
Select Android tools->Add support library
Select the latest support library (current rev 13)
Accept License and press install
For the example projects. Check that the path to the library 'facebook.jar' is correct
Right click on the project in the Package Explorer.
Select Properties
Select Java Build Path
Select Libraries
Check that the 'facebook.jar' path is correct

Android Facebook SDK Can't Add Project

I have been following the tutorial found below and am having issues adding the Facebook SDK.
https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/
It occurs when I get to the stage of "Link to the SDK project and configure the Facebook app ID".
When I go to Properties -> Android -> Add and add the FacebookSDK, it seems to work fine. However when I save and close that page, and go back into it, there is a big X against the reference.
I have tried going into project properties and changing it from a relative url to a full url as such:
FROM android.library.reference.1=../../facebook
TO android.library.reference.1=/Users/michael/Documents/facebook-android-sdk-3.0/facebook
Without this working properly I can't do anything with the Facebook SDK.
I am on Mac OSX and have no idea what else to do in the Eclipse ADT
FacebookSDK project must be on the same part of HDD as the user's project.
For example:
E:\Facebook Android SDK 3.5 - FacebookSDK project
E:\Work\Restaurant - User's project
It works for me on Windows 7. Maybe, it will help you on your OS too.
Look at your console. You might have a dependency error with the android support jar. I just had this issue a couple of days ago. If this is the case you will need to delete the jar out of your main project and copy the android support jar from the facebook SDK into your project.
EDIT: if this isn't the issue let me know, I think I ran into every issue possible implementing Facebook into my app. I am pretty sure I can help get you connected.
Sorry, issue resolved. Eclipse was being odd. After restarting the program everything worked correctly.

Categories

Resources