I am very new to android development. Actually today is my second day. I downloaded this code for an app and I want to test it if it works or not. I downloaded it from here.
I am using android studio but I have no idea where to import this code so I can test it. I tried to search google but I am not sure if I am looking for package import or java or android application library. This all is very confusing to me. Can someone tell me how can I import and run this code in android studio IDE.
thanks
Go with the Android Development Bundle. It is Eclipse with an SDK build by Android for Android. It will make things much easier on you.
https://developer.android.com/sdk/index.html
After that, you can simply go to File->Import.
try this out Migrating from eclipse to studio
Related
I'm new to programming and computer science in general. I've looked around and Atomic Kotlin seems to be the most organized and comprehensive course for new learners. I'm using Android Studio to learn how to program.
When I get to Introduction to Objects > Testing the package atomictest doesn't import for any of the following exercises.
I have created a sample program to check if the package and import tools worked in general and the tools worked fine. Then, I tried to see if IntelliJ IDEA had the same issue with the course and importing atomictest worked just fine. So it seems that there is a compatibility issue or a referencing issue with Android Studio and Atomic Kotlin.
I went into the Packages portion of the project tree and went to the actual *.kt file containing the package and it checks out.
Here's what the error looks like within the Android Studio IDE
I could continue with IntelliJ but I want to learn using Android Studio. Why is this issue happening and how do I fix it? Thank you in advance.
I am new to android development, So I am not sure if this question is very silly
I was wondering if the same source code can run in both eclipse and android studio
If this is possible how to do it, and what points should be considered?
If not what are the road blocks to accomplish this.
Simple answer: Yes, you can "write" (not run) in both IDE's.
Aside: You really don't even need an IDE. If using Gradle, you can write code using any text-editor, then compile, build, test, and install all using Gradle.
If this is possible how to do it?
Well, Android Studio can import Eclipse projects. That is pretty well documented.
Eclipse (unofficially) has an Andmore project and also supports Gradle projects.
what are the road blocks to accomplish this
If using Eclipse, it's not supported by the Android team anymore, and you'll likely be missing out on features that are actively added to Android Studio.
I am trying to create an android program but, every time I set it up it does not make a new project **successfully**, the project that is made has a huge number of errors..
All the specifications are given in the screen shots below...
Making the Project
ADT
Maybe you can try opening it on Android Studio, an then making the new project there. Hope it could help you.
you need to import android-support-v7-appcompat library then clean your project
try to start using android studio, as suggest by developers/google Android studio for android Development, Android studio having much more functionality then eclipse and provide faster tools.
Android Studio
i'm new to android development and i'm using Xamarin and Android Studio ... i have created my Hello World App successfully and i have downloaded Scringo SDK.
in it's tutorial he is using eclipse.
so in tutorial he said to right click in eclipse workspace and click on import.
but i'm using Xamarin and i can't find Import option.
please if anyone has any idea tell me :). thanks and sorry for my English.
http://cdn1.scringo.com/resources/v1/import.jpg
where i can find this import option ?
You would need to create a C# to Java binding project. It is very easy but might need some tweaking depending on the Java library.
http://docs.xamarin.com/guides/android/advanced_topics/java_integration_overview/binding_a_java_library_(.jar)/
The phonegap create still makes a phonegap project but the eclipse no cannot see projects when you select import and browse to the folder. It says "No projects are found to import".
It worked fine before though because made projects before.
Why does this happen?
UPDATE:
Seems the problem is with my eclipse since tried to give the created phonegap project to a colleague and it is recognized in his eclipse. For some reason my eclipse stopped recognizing phonegap projects.
#jhdj Delete all the existing projects in the eclipse ide and import the project which you want i hope you will get it,
file->import->android->existing android code into workspace
hope this works,b/c it worked for me.
You can try.
Check are you trying to import from the right directory. You are looking in some wrong
directory.
There are so many posts available in So only for this kind of problem refer them.
No projects found to import
No projects are found to import - Helios eclipse
Why "no projects found to import"?
You also have an alternative which I was using when I was working on linux fedora.
Otherwise look into this tutorial to build phonegap application in eclipse itself
http://www.adobe.com/devnet/html5/articles/getting-started-with-phonegap-in-eclipse-for-android.html
See this section -- Creating the project in Eclipse
The tutorial is for the cordova-1.5.0.js version.
You can use the latest version or may the versuion you wan to use there is no problem in doing that at all.