I have two files: library.jar and library-javadoc.jar. How can I import the library into my project in Android studio, such that Android Studio will show me the Javadoc when I mouse over something from the library? To be clear, the problem isn't getting the library into my project because I've already done that. I am struggling to find a way to attach the javadoc. I've been tearing my hair out and I've googled the answer a million times but I can't find anything. I don't understand why this has to be so hard, it was dead easy in eclipse.
Related
So I've been searching around for days trying to figure out why I can't implement admob into my Android Studio project.
Things I've tried:
I have the google play services installed and latest Android SDKs
File->Project Structure->ads->ticking admob
--this will try to load in the dependencies, and always fails with
(Error:Could not find method dependencies() for arguments [build_23ysmkvnpvbphbg3g4deijgq4$_run_closure6#4afc19b] on org.gradle.plugins.ide.idea.model.IdeaModel_Decorated#18b40be.)
I've tried deleting the .gradle folder, restarting AS and rebuilding with the same Error.
I've tried creating a new blank LibGDX project and importing that and directly getting the admob dependencies and still the same error message.
I'm honestly not sure what I'm overlooking here.
If there's any info you feel I've left out, please let me know.
So, I'm coming from the Eclipse environment, and whenever I built a libgdx project, I've never had to go into the "advanced" settings. so messing around some more I went into the advanced settings and saw a checkbox for IDEA(generates intellij IDEA project files) which has seemed to work in getting rid of that error.
As recently, I've been looking through Android Templates for Material UI design, as I want to get a feel on how to use the types of pieces in one. But, It's been a struggle. Every one I've done, I got an error when building the module. AndroidManifest.xml Not Found
I've looked every where, and it all doesn't apply to me. I am attempting to import a repository from GitHub to Android Studio, all updates installed. Here were my steps.
Clone the project into a .zip file.
Extract.
Import into Android Studio.
Import Gradle Files.
Configure framework.
All works, but only option to generate signed APK, normal apk, and build module.
Build Module.
Android Manifest isn't found.
Is there something I'm missing? Please let me know, as I am stuck. I've also read I need a local.properties file. I do not have it, so I do not know how to properly add it without messing up.
Thank You.
Refer this, How to import an existing project from github into Android Studio.
Still not convinced?.
Try these, https://github.com/rdrobinson3/WelcomeToL/issues/2 and https://github.com/google/beacon-platform/issues/24
I'm sure I've just missed something obvious, but I'm at a loss of where to look to solve this.
I'm trying to get started with android wear, and am following the tutorial on this page.
However I can't find any information about which libraries I need to include or where to get them from.
I'm using eclipse and have used the Android SDK manager to download the Android Wear System Image (although I have a G-Watch to test it on) and all the 4.4W stuff, and I've set the project to build against 4.4W but I still get the following error
The import android.support.v4.app.NotificationManagerCompat cannot be resolved
The import android.support.v4.app.NotificationCompat.WearableExtender cannot be resolved
I have the android-support-v4.jar included and android.support.v4.app.NotificationCompat is found OK, but I can't see anywhere in the android wear docs that it says I can get this library and it's driving me nuts.
If someone could point me in the right direction that would be great.
Thanks
There is no android.support.v4.app.NotificationManagerCompat in the support library.
There is in the current one. Examining my android-support-v4.jar shows this class. Make sure that you have the latest version of this JAR downloaded to your machine (from the SDK Manager) and in your project (e.g., copied to libs/ from $SDK/extras/android/support/v4/, where $SDK is wherever your Android SDK is installed).
I know this may sound like a duplicate, but I have read and tried avery answer posted here. It is just not working for me.
What do I need to do to fix this?
only android.R is working , I can't use R directly. I have been hunting the solution for few days. I didn't really wanted to go back to eclipse but I wasted a lot of time already trying to resolve this.
any idea?
Things I tried:
clean gradle
Sync gradle
Checked for xml errors
Answer below
and more....
Things to do:
Be sure you delete any stray imports lines that are pulling in android.R or any other package.R, then re-ruild/clean restart eclipse/android studio.
I had the same issue when I tried importing an existing Eclipse Android Project into Android Studio. The issue was resolved when I removed the following code in the build.gragle file :
here is the code
`dependencies {
classpath 'com.android.tools.build:gradle:0.4+
}`
I've downloaded the latest AndEngine from Nicolas on his Github repo. Made all the extensions compile on my workspace, everything was okay.
Created a project to start testing the Engine, but whenever I go to my example project properties > Android and try to add AndEngine or any of its extensions, there's a green tick... so I accept when I apply the changes, but when I open the Android configuration again and see the library imports, there's a red "X" on every import, like it failed.
Here's the screenshot:
Does anyone has encountered this problem before? How do I solve it?
No worries, made it work thanks to a guy from this forum
http://www.andengine.org/forums/tutorials/getting-started-with-andengine-t4858-180.html
Going to quote what he said, it really worked:
Hey, look, I can contribute! (Sorry, I'm just excited to be able to
add something here)
I had this same issue and resolved it by moving the libraries
(AndEngine, etc.) into my Eclipse workspace.
For instance, I originally had all my AndEngine files in C:\Users[my
user name]\git\AndEngine\ and encountered the same errors you
describe. After some Googling, I found that I had to move the
AndEngine library from .../git/ to my eclipse workspace, which is
located at F:\android-workspace
So in the end my project's files were located at:
F:\android-workspace[project_name]
And the AndEngine files were located at:
F:\android-workspace\AndEngine
Be sure to re-link the library to your project after moving it. Also,
I apologize for my verboseness, I just wanted to be clear.