How to start Android project - android

I'm beginner in Android development (but I have developed in Xamarin for Android). I downloaded project from:
https://github.com/zxing/zxing
and I'm trying to start it. I downloaded Android Studio 2.2.3 and opened the project. My Run and AVD manager buttons are grey, so I'm unable to start it. What should I do?
When I click Run -> Run... Edit configuration dialog is shown:
and after choosing it:
my Run button is grey.

At first start a new project and check if Run and AVD buttons work or not.
and also becareful about Red lines in project, because they are error. you have to fix them

First of all you have to create an AVD by clicking on AVD Manager.
Tools > Android > AVD Manager.
I hope this helps.

Looks like you're trying to run a library project. You should create a new project and add this as a dependency and use the library features in your Activities.
ZXing ("zebra crossing") is an open-source, multi-format 1D/2D barcode image processing library implemented in Java https://github.com/zxing/zxing

Related

Missing Android Studio Tools from Android like Activity

I am doing my first tutorial from Android Studio and I dont have tools like a man did https://www.youtube.com/watch?v=gu41h6EvTPw 6:35
I mean those android tools like activity etc
photo
Did you wait for Gradle to finish and downloaded all updates for Android Studio? Some basic features are blocked when you open project and are still being processed by Gradle.
After Gradle build finished, if not fix do this:
At the top of files list, left side, click on Project
Then click on Android

Android Project in IntellIJ - Error: Activity can't be created

This is an image of the situation:
I downloaded IntelliJ IDEA, JDK, and SDK Android for use. But I can't create an Android project because the windows shake everytime I try to create an activity or when I click "next".
I've tried to download another IntelliJ, I tried create other activity (no activity too but on start it shakes, too). I've searched for the solution here and on other sites, but I did not find it.
I think I won't have this problem if I would download Android Studio. But I want to know what is happening.
Same here. I faced this issue for the MacOS version of IntelliJ. I think I found a temporary workaround to this. After installation of IntelliJ and running it for the first time, configure JDK and Android SDK by selecting configure default project settings at the bottom right of the splash screen dialog before you attempt to create a new Android project

Add Android Run/Debug configuration for Flutter project

I am working with a Flutter example project where it shows how to share a FlutterView inside an Android application (and iOS also).
While working with it I tried this:
I make changes to the android project like changing the theme color, if I do hot-reload/run for main.dart I don't see the changes reflected in the running app. I have to stop it from Android Studio and run the main.dart again to see the changes.
To solve the issue I was thinking to add a run/debug configuration for Android app module. So that I could run android app and not main.dart.
Is there a way how to achieve this in Android Studio?
One solution for me was to open the android(/flutter_view/android/app) project from a new window in Android studio. I could run the app this way.
(But here I encountered another issue in case anyone has the solution).
According to my understanding you face problems when you open your project and try to run.
Android studio asks you to configure your project to be able to run...
It's easy to solve near to run button you will find "add configuration" button just press then from left side select "flutter" and put in the field "entrypoint" your main Dart file path main.dart...
EX. E:/project/lib/main.dart....
Then from top right corner press "create configuration"...
That's it.
For Configure your Flutter app on Android you have to Upgrade Gradle file..
So Go to the Tool and at you will find AGP upgrade Assistant..
It Download new Gradle file then its Config automatic..

Android studio unable to build downloaded project

I'm very new to Android, I downloaded sample project from Developer.android.com,
and when I open in Android studio,I couldn't see clean or Build option.
please guide how to build this project.
Is there any good sample code for Navigation Drawer with activities and Images?
Thanks.
As Kristy Welsh pointed you need to import the project.
Video how to import.
Project with Navigation Drawer.
It looks to me like you have a project that was created in eclipse. Try importing that project into Android Studio and it will do the build for you.
There should be a big green play-symbol you can click. It then opens a pop-up where you can choose to either run it on an emulated version or load it onto a connected android device (provided you have the drivers and the phone allows this direct installation). An alternative would be to build an .apk and put it into your phone's file system to then install it via the phone. This takes way more time but is the way to distribute your app to friends without using the play store.
if there is no error after downloading ,try to sync the project
You have to add a Configuration at Run>Run Configuration>Green Plus>Android Applicatio. now select your Launch Activity and your Module

Running android project

I made an app and after many days I want to run it again . Because of my project was on SVN for using the app I follow this steps :
1.File--> New--> Other--> SVN--> Project From SVN ... and so no
But when I right click on the project name to run it there isn't item call "1 android application"
when I want to config it for running ,in Android tab --> Project--> Browser I can't see my project and it's list is empty .
Also I can't find AVD for running on it (I made three AVD already...)
How can I fix it... :(
please guide me.
Thanks ;)
Ensure that your AVDs are running Android version with target API. For example if your project is for API 14+, no AVD with API < 14 will be listen on Target AVD list.
In the comments you told you are not seeing any Android tab in the project properties, you should be seeing something like this:
I would think then, that you do not have the Android SDK well configured, or your project is not set to be an Android Project.
Try re installing the Android SDK. Or creating a new Android project and copy all the files in that new project.

Categories

Resources