Importing a GitHub project to Android Studio - java

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

Related

AndroidManifest.xml and Bluetooth Chat, in Android Studio

A gentleman was kind enough to pass me a link of a repository with bluetooth functionality. I imported it from GitHub. I tried then copying it, but noticed eventually that Android Studio built and organized a different style of directory than that from the github repository. So I deleted the entire directory, and just pasted that of the github depository in.
However, the repository version suffers from the fact that the classes say "Java file outside of source root". Moreover, when I tried to import it, it generates the error "The project is using an incompatible version (AGP 7.3.0) of the Android Gradle plugin. Latest supported version is AGP 7.2.2". I read online I could just update Android Studio instead of downgrade Gradle. When I do the most recent update (I think), Android Studio tells me that the project doesn't use the Gradle build system.
Also, AndroidManifest.xml says that it can't resolve certain activities, such as "MainActivity", which does exist. I think AndroidManifest.xml is in the root folder as it should be.
Any idea what is wrong with my program? At this point, this is just copy-and-pasted from the github Bluetooth Chat program. Is that outdated, etc?
I have spent hours trying to troubleshoot this. Perhaps there is someone with some experience in it.

How do I import a GitHub library into my android studio project?

I am trying to use this GitHub library: https://github.com/JonnyHaystack/build-prop-tools in my Android Studio Project, but can't quite figure out how to do so.
I've tried cloning the project, then importing it as a module, yet I am not sure what part of the cloned folder I am supposed to import.
After I import a new module, I know I will then be able to add it as a dependency, but I do not know how to get past this step. Any help is appreciated.
Click Github get from version control
Clone project

Downloading a libgdx Project Gradle Problems

So my friends and I are making a game for Android and we are using Android studio. We are using libgdx. We are also learning how to use github. Anyways, using Android Studio, I uploaded the basic libgdx setup. The one that just displays the Bad Logic image. My friend downloads it from github using Android studio but there are errors everywhere. It says that it can't find the badlogic package and it gives the following error:
This project does not use the Gradle build system. We recommend that you migrate to using the Gradle build system.
I know that libgdx uses gradle. So what is the problem? Why can't we simply upload and then download a simple project?
Thanks!
Try to remove the .gradle directory and re-import the project or use the Setup App Installer from here to create a new gradle project.
Thanks for the help! I finally figured it out.
Basically, when I imported the project, I was just importing with existing project files. These are the steps I took to get it fixed.
Check out from Version Control using Android Studio and the welcome screen.
When asked to open, say NO.
Go to the folder that is associated with the repo.
Create a local.properties file there and in that file it should have
sdk.dir = /YOUR/PATH/TO/SDK/HERE
Then go back to Android Studio.
Click Import Project and select the folder that has it in there.
From then on, it should work forever as the .gitignore file that is generated by libgdx will ignore the local.properties file when pushed. I hope this helps someone!

what happend ? when i try to import my project from eclipse to Android Studio,it just can't run correct?

Now, i have problem that in the AndroidMenifest.xml, all of classes is wrong. And in Studio the APP can run , but is just flash past . before import to Android Studio, in the Eclipse , it' runs right . Anyone has an idea what's going on?
I really appreciate it .
In newer versions of Android Studio, the best way to bring in an Eclipse/ADT project is to import it directly into Android Studio; we used to recommend you export it from Eclipse to Gradle first, but we haven't been updating ADT often enough to keep pace with Android Studio.
In any event, if you choose "Import Project" from the File menu or from the Welcome screen when you launch Android Studio, it should take you through a specialized wizard that will prompt you that it intends to copy the files into a new directory structure instead of importing them in-place, and it will offer to fix up some common things like converting dependencies into Maven-style includes and such.
It doesn't seem like you're getting this specialized flow. I think it may not be recognizing your imported project as an ADT project, and it's defaulting to the old built-into-IntelliJ behavior which doesn't know about Gradle. To get the specialized import working, the following must be true:
The root directory of the project you import must have an AndroidManifest.xml file.
Either:
The root directory must contain the .project and .classpath files from Eclipse
or
The root directoy must contain res and src directories.
If your project is complex, perhaps you're not pointing it as the root directory it wants to see for the import to succeed.
Thank you.

zXing runtime error in Android

I'm trying to integrate zXing into my Android app.
I've created a new project from the "android project", set it as a library and insert the core.jar.
I've also have import it the project as a library into my app and insert the core.jar too, but when I launch my Intent, I keep getting this:
RuntimeException: Unable to resume activity
I've read all the posts and tutorials, and I mean it, ALL of them, but I get no solution.
Can anyone help me please?
Kind regards and thanks for advance.
Do one thing change the library project folder to the sdk location for this you have to make one folder which is extensions and then put zxing library file in to it and then import that all library in to you project explorer and then give the reference of library again and you can also follow this below site .....
http://www.androidaz.com/development/zxing-qr-reader-direct-integration

Categories