Can't install Dropbox plugin for Android Studio - java

I'm trying to add the latest (v5.1.1) Dropbox plugin to my Android Studio install (Bumblebee 2021.1.1) on Win10. I downloaded the .jar file from releases/v5.1.1 folder to an empty folder, then tried to install it using this method: from the Studio main menu I chose Plugins, selected the gear icon followed by Install Plugin From Disk, browsed to the .jar file location, selected it then pressed OK. I got an error message: "Fail to load plugin from file dropbox-sdk-java-5.1.1.jar". I tried installing the -5.1.1-javadoc.jar file using the same method, with the same result. I don't need the sources, I just want to use the SDK. Any ideas? TIA!

First, I think you meant "Android Studio" instead of "Visual Studio"?
If so, it sounds like you're attempting to install the Dropbox Java SDK as a plugin to Android Studio itself. The Dropbox Java SDK is not an Android Studio plugin though. It is a package for connecting to the Dropbox API from your Java app.
To install the Dropbox package in your app, you should use Maven or Gradle, as instructed here.
The Dropbox Java SDK also comes with an example Android app that uses the Dropbox package.

Thanks, Greg; your answer pointed me in the right direction. I had already added an 'implementation' directive to my Gradle file as per the directions on GitHub. However, I took the instruction to add the directive by editing my "project's build.gradle" too literally; I added it to the Project build.gradle file instead of adding it to the Module build.gradle. Problem solved!

Related

GitHub and Android studio no gradle.build

So I created an Android studio project, then trough it I created a Git repository and published it.
Now I'm on a different computer trying to sync it all. So from the home of android studio I select "Check out project from Version Control" then Git, paste the github repo link and it imports the code, but no all.
When I open the imported project the Gradle Script is missing (tough it's not shown even in the GitHub repo), the manifest folder and to show the res folder i have to change the type under 1:project to "project".
If I open an activity xml file it won't give the option to switch between Design and Text. And it doens't recognise some component like "AppCompactActivity" in the java files.
Anyone knows what is happening and how to solve this?
Thanks
Probably you didn't commit all files. Also you should check that the IDE is the same on both computer, same gradle plugin, same Android Studio version and so on.
Check that your gradle exist on your github repo in remote

Trouble installing ADT plugin in eclipse (for developing android apps)

I already had Eclipse (kepler) installed to create java programs.
Now I wanted to develop android apps, so I wanted to install the ADT plugin for Eclipse.
I read the following:
http://developer.android.com/sdk/installing/installing-adt.html#Download
I did those steps exactly.
Then, on that same page, I read this paragraph:
http://developer.android.com/sdk/installing/installing-adt.html#Configure
But I don't understand what I have to do.
When Eclipse restarts, I get a popup diolog which asks me to choose a path which has to lead to a folder. I can't find any folder. I don't see anything changed in my file system.
I don't see any folder which looks like Android SDK. I think I am missing something.
You need the SDK as well. You can find it here:
https://developer.android.com/sdk/installing/index.html?pkg=tools
When you install it you have to insert the path of your SDK in the Eclipse popup dialog
I encourage you to update the SDK on your first launch through SDK manager

Location of adt plugin

Hi all I want to know where on disk adt plugin is installed.I downloaded the whole package from Android Developer then i updated it to API-19 but now it has stopped working it shows an error Dependency Confliction .
Please help me out
By default adt plugin get install in your eclipse plugins directory "~/eclipse/plugins/"
For the ADT to work normally you need to set the path where the bin folder is present .
This path is to be set under the Project>Properties>Android.
If the path is configured properly then you can see all the installed packaged (Android 1.2 to the Android 4.4).
If not set then you can set by
In the "Welcome to Android Development" window that appears, select
Use existing SDKs
Browse and select the location of the Android SDK directory you
recently downloaded and unpacked.
Click Next.
Download the ADT Plugin from....
https://dl-ssl.google.com/android/eclipse/

R. Java file is not created in Android Application

R.java files are not being created in my project.
I have tried solutions like clean the project,removing .jar file from java build code.
Even though it is not working properly, how can I fix this?
Sounds like you're either not using Eclipse, and/or not using the Android eclipse plugin.
Take a look here: http://developer.android.com/sdk/installing.html
If you have not set android SDK then download and set sdk target
Try to clean your project and try to get error which type of error you are getting and solve it
Try to create a new project from existing java, xml, menifest and drawables
I think you are developing in Eclipse (java).
But you need to install the ADT Plugin (see here: http://developer.android.com/sdk/eclipse-adt.html)
After that you must download the Android SDK (Link)
In Eclipse you have to add the SDK.
Window->Preferences under Android -> SDK Location
Now create a new Android project or open an existing project like the API Demo.
The R.java file is generated automatically

NoClassDefFoundError when running Facebook official example

Sorry I am new, stackoverflow does not
allow me to post image and links...
I try to use Official Android SDK (http://github.com/facebook/facebook-android-sdk/). I install the SDK and try to run the Example
At first, it fails at "build", it cannot find the Facebook SDK, so I try to follow the steps found in SDK page:
Add a dependency on the Facebook
Android SDK library on your
application:
from the File menu, select "Properties"
once the project Properties are displayed, open the Android section,
which should list the build targets
and libraries
in the bottom "Library" section, click "Add..." and select the Facebook
SDK project
refer to http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject
for more details
I check the link at #4, it shows a Mac OS X version Eclipse, which has Library section, but on my Vista PC, with Eclipse 3.5.2, it does not have Library section...
-http://developer.android.com/images/developing/adt-props-isLib.png
-http://farm5.static.flickr.com/4138/4852346022_fc8f6bedbe_b.jpg
I try to add the Facebook SDK in Java Build Path. Now it can "build" and start, on both Emulator and Device. However, once it started, it crash, the logcat shows:
ERROR/AndroidRuntime(518): java.lang.NoClassDefFoundError: com.facebook.android.Util
-http://farm5.static.flickr.com/4138/4852346048_f4a3b998a3_b.jpg)
I searched around, about "NoClassDefFoundError" program, but seems those solution is solving external JARs files. I have no problem adding other JARs files, and this Facebook SDK is not JAR...
I tried Clean, rebuild, delete everything and config again, but can't solve this problem yet.
Anyone have idea please help, Thanks.
This exception is thrown if a class could not be found at runtime even if it was available when the program was compiled. You need to double check that the SDK jars are available to then program in the launch configuration. This includes the jars being physically present ón the device.

Categories