I am in need of some serious help.
I have this project where I need to Import/ export stuff from the is24-api-android-sdk that can be found on GitHub (here). I opened up a new application with a blank activity for starters. Then downloaded the zip file. I unpacked it and tried to add the sdk via import module but it always wants me to specify the gradle or android eclipse project but there are no gradle files. I also tried to add it via maven or compile the dependency straight on but i find no information how to do this that way.
I'm just stuck big time and not sure how to help myself. Is there any instructions or help you can give me.
Related
I have gone through similar question on the internet. But I am still unable to find a solution for it.
To begin with I am trying to understand gradle and how android studio builds gradle files.
I have read about gradle and how it is structured. I have understood that it is similar to make in linux, so it builds all of the necessary files to create apk. But i could not understand how android studio generates all the gradle files. Is there a main file which is executed and which generates all of the other gradle files.
My project was working properly until i had to sync the gradle files and now it is giving me "Gradle project sync failed" error. I have tried out existing solutions on the internet, like
1.Invalidating caches and Restarting
2.Settings -> Build, Execution, Deployment -> Gradle turning on Online mode here, which i could not find on the android studio version 4.0.1
3.Opening up Gradle build console from View -> Tool Windows -> Gradle which i could not find.
I can't see the module level and project level gradle files amongst others, should I manually add them?
Should i download a new gradle file and point it separately? Is there any way to fix it by executing the right gradle file and generating the rest of it.
Where can I read more about it and have a better understanding of gradle.
Better install a new version of android studio. i think you have updated your gradle plugin.
I had that problem and I just updated my Android studio. It worked!
go to: Help->Check for updates
This is my first time to use Java, and I have no experience in Java, but good experience in .Net
I have downloaded an open source code called ctakes
and downloaded IntelliJ IDE community version
i pointed to the main folder of the project to be opened by IntelliJ IDE
but when i try to run it, it does not work
not sure what the problem is and how to fix it.
I want help in making the code runs successfully, any help appreciated.
Assuming you are talking about this repo, this is a maven based project. In order to import it correctly, follow this link
and refer to Open an existing Maven project section.
A maven is a build tool that will automatically download all the dependencies required for the project source and apply them in classpath accordingly.
You might have to install maven first. You can download that from here.
This must be a painfully simple question but I am new to IntelliJ. I am running 14.1 community, and created a new plugin project.
This asked me to set the SDK, which is install of IntelliJ. No problem, I pointed it at the IDEA directory.
I grabbed some example source for creating a task repository from github.
When I try to import any of the actual classes in the Task jar, I get no classdef errors all over.
It shows that it knows about com.intellij.tasks but all of the classes are missing.
What rookie mistake have I made?
In order to use com.intellij.tasks.* classes in plugin project, I've added plugins/tasks/lib/tasks-*.jar jars from IDEA installation to the classpath of SDK used to build plugin project.
I am starting at a disadvantage as I know neither Eclipse, Gradle or Android Studio. As such, I may not be using the correct terminology for everything, but I'll give it a shot. My ultimate goal is to get a working Eclipse-based Android app imported into Android Studio and hand it back to the Android developer. This question is about a problem I encountered on the way.
I have successfully imported the main Android project into AS. Now I'm trying to pull in another project it depends upon as a module. The dependency is a Maven project. It has a pom.xml, a .project and a .classpath. It's not an Android project, so there's no AndroidManifest.xml. It has a src but no res folder. I want this project to be a module rather than an external dependency as the developer will modify the source code on occasion.
The problem is that AS refuses to accept the project as an importable module. The Add Module dialog, when pointed to the project's root directory, continues to warn that I haven't yet selected a valid Android Eclipse or Gradle project. The Next button stays grayed-out. I agree that this is neither an Android-specific nor a Gradle project, but I have read here that IntelliJ IDEA will import such projects. It appears that AS will not.
There are several other non-Android Eclipse projects that also won't import as modules in the same way. These include ordinary Maven and ant-based libraries.
How do I accomplish this? The GUI seems out to thwart me. If I get down to the Gradle XML level, can I do it and will the modules show up normally in the GUI? Do I have to go back to Eclipse and convert these to Gradle projects first?
Thanks in advance.
After adding Google Play Services to integrate Google ads into my libGDX project in Eclipse, I can no longer use Gradle to build my Android project.
I know that's because I need to tell Gradle about the new Google Play project dependency so I added compile com.google.android.gms:play-services:5.0.89 to the dependencies section of the :android project however it complains that it could not find com.android.support:support-v4:19.1.0.
I guess that means I need to somehow tell Gradle this new dependency depends on another dependency?
Everything works fine in Eclipse so the dependency of my Google Play project in Eclipse is for sure golden, I just need to make Gradle the same way. Do I need to declare the Google play project as another Gradle project and make a build.gradle file for it? I don't think I should be touching the Google Play project contents at all.
If you have downloaded the tools and google reprositories using the Android SDK Manager (1st thing to check), check if your build.gradle files do not need to be updated (what libGDX version are you currently using?).
I had the same problem and solved it by replacing my Android's module build.gradle file by a brand new.
To do so, use the last ligdx setup ui (https://github.com/libgdx/libgdx/wiki/Project-Setup-Gradle) to create a fresh project then compare/replace gradle files.
Under your android module there's a build.gradle file. Add the following:
dependencies {
compile 'com.google.android.gms:play-services:6.1.11'
}
Check for the latest version of Google Play Services and update your version number accordingly.