Cant start a new project in Android Studio, nothing happens - android

I am new to Ubuntu and Android, and I tried to install Android Studio and succeeded in that matter, but when I click Start a new project nothing happens. I tried reinstalling, but it didnt help. Any ideas?
EDIT:
i managed to create project manually using terminal, but in android studio I still cant create project nor edit existing project (some IDE error is thrown)

You should be more specific (screenshot or quotes of error), so try this:
In Android Studio, go to Configure -> Project Defaults -> Project
Structure -> Platform Settings (SDK) choose the Android SDK, set the
build target and click on apply.

After successfull installation of Android studio,sdk and jdk i was not able to open new project in Android in Android Studio on windows 7. This got resolved by doing the below settings,
Configure -> Project Defaults -> Project Structure -> Platform Settings (SDK) choose the Android SDK >click Apply and Ok.
You are good to go. Please note that you need jdk 1.7 to work with Android studio.

Related

How can I include "Android" in the drop down list for project folder setup in Android Studio?

I recently downloaded Android Studio 4.1.1 on a new computer and I want my file structure to be similar to what I had on an old macbook running Android Studio 3.5.2.
I am new to Android Development, so I don't know the terminology, but I included some screenshots to show what I am talking about. On my old computer (3.5.2) I had the option for an "Android" dropdown list. This isn't even an option in the new 4.1.1 Android Studio.
(BAD^)
(BAD^)
(GOOD)
Things I have tried:
File -> Sync Project with Gradle Files
Adding a new module. But I don't know how to set this up. (File -> Project Structure -> Module)
According to Android Studio Docs, repos come by default with and "Android View"
You have not accepted the license agreements of the following SDK components
^This post solved it for me. It didn't recognize the project as an "Android" Project. I was getting an error "license for package android sdk build tools not accepted 28.0.3."
cd ~/Library/Android/sdk/tools/bin/
I navigated to the correct folder and was asked to go through and accept the additional licenses.
./sdkmanager --licenses
*I can now view it in the proper file structure with Android as a drop down

Cannot run my app, asking to select Android SDK

Today I've installed Android Studio Canary 1
Now I cannot run my app. This following dialog appears.
I've already set the right SDK location through File-> Project Structure-> Android SDK location.
Expecting your help to solve this problem.
Warning Dialog image:
Go to project structure settings and set Source Compatibility and Target Compatibility to your current java development kit version:
Just you need to sync your project file with your gradle file.
File -> Sync Project with Gradle Files
I tried every answer in this post but my problem only got resolved when I made these steps:
File -> Close project -> Remove project -> Open existing project (same
project)
Maybe this will save a morning to another person with the same bug.
EDIT
This happened to me a lot on a MacBook. After I posted this answer it just kept happening so what I did was:
uninstall the Android Studio version I had from the App Store;
download the desktop stable version from Android Studio website;
start using the desktop version of Android Studio.
Never happened again.
Sometimes the SDK path will be incorrectly configured. You would need to fix it.
To Settings/Preferences( command + , on mac).
Search for SDK
Under Android SDK, click on edit and point it the root of sdk directory on your file system. (If ther is no SDk installed then install in from the below list).
i suggest you go to build.gradle and sync again.
Or Tools -> Android -> Sync Project with Gradle Files (Android 3+)
You need to insall SDK api 19 check this out.
https://developer.android.com/studio/releases/platforms
Go to sdk manager and install sdk according to your device and check your device api. Example if your device is jellybean then install api 19 sdk.
Go to Tools> Android > SDK Manager and make sure you have selected default Setting under System Setting. In this image I have selected Android 7.1.1 as default SDK
Just click on the button ..."Sync Project with gradle file"
Error will be remove
I had the same problem and what it worked for me was just sync with gradle.
I just did what I've found in this similar question:
How do I "select Android SDK" in Android Studio?
The original answer:
go to build.gradle and click sync now. Then it worked.
Update :
File -> Sync Project with Gradle Files (Android Studio 3.1.1)
Tools -> Android -> Sync Project with Gradle Files (Android Studio
3.0.1) Or You can click on the icon from the toolbar.
Sync Project Icon
This answer may not help works for later version as Android studio Team work on making the tool more better, the way to sync may be
different in the next version of Android Studio.
COMMON WAY that may helps is try to sync project and then Invalidate
Caches and Restart Android Studio.
Solution for Android Studio 3.1.2
Before that, by the way, I had invalidated cache and restarted too, but it didn't work.
Please, try and let us know.
P.S.
I had this problem after I imported a project from Git, just in case someone would like to replicate.

Android SDK missing on Intellij IDEA

I just can't figure out how to install Android SDK to create new Android project on IntelliJ properly.
While trying to make a new project, red bold warning appears:
Your Android SDK is missing, out of date, or missing templates. Please ensure you are using SDK version 24.0.2 or later.
The problem is, I don't really know how to fix it. Where could I eventually find accurate SDK and how to fix that?
Thanks in advance!
If you never installed an Android SDK, you will first need to install it, as explained here:
https://www.jetbrains.com/help/idea/prerequisites-for-android-development.html
Then, go to File -> Project Structure -> Platform Settings: SDKs.
Click on "+" and select Android SDK.
A dialog will open in which you should select the directory containing the Android SDK.
After you add it, you will be able to create an Android project in IntelliJ.
Follow My below steps to fix your issue :
Click On SDK Manager
Click on Launch Standalone SDK Manger
Update All the available support Libraries & tools
"Configure -> Project Defaults -> Project Structure -> SDKs -> +" add here path to your Android SDK.

Errors while starting Android Studio

I got these errors while starting android studio. Please can anybody provide me solution for this:
> java.lang.RuntimeException:
> com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal
> error initializing 'com.android.tools.idea.AndroidInitialConfigurator'
Just go to ~/users/[your_username]/ and delete .AndroidStudioXXX . then restart android studio and don't import settings from the previous version.
WINDOWS 10:
What helped me is I went Computer Properties => Advanced => System Variables and deleted everything that says Android...
There was AndroidSDK, AndroidAVD folder paths that are no longer existed in my system.
FIRST make sure you have installed same 32-bit or 64-bit of JDK and ANDROID STUDIO. then do following
Launch Studio
Configure -> Project Defaults -> Project Structure
Go to the SDK's section
Add a JDK
Add the Android SDK that is bundled in inside the Android Studio installation folder
Then go back to creating a new project.

android studio new project missing folders

I have created a new project using the latest version of Android Studio (0.2.2), this is a fresh install of studio. When I am in the project explorer view, it fails to show me any folders for my project. I should see a root project folder, and within it the .idea, gradle, and module folders, but they are not showing.
Here is what I expect to see (taken from the sample project created on first boot):
But here is what I see immediately after the project's creation:
I cannot figure out how to expose my project's folders! I do not want to develop without the project explorer, it's simply too much of a hassle. Did I create the project incorrectly, or am I missing some not-so-obvious setting somewhere?
Thanks.
The problem here is that I assumed android studio would create a module for the application. I assumed this because it asked me at the beginning for app name, module name, package, sdk info etc.
This assumption turned out to be false. You must create your first module manually through File > Project Structure. After that is done, the project explorer shows the files.
File -> Project Structure -> Modules
Add Button (Green plus button) click -> New Module Select
New Module window -> "Content root" change path button click to select "Project root file path"
Apply to change save and "OK" button exit.
In the project Explorer there is a drop down menu where you have selected project, now change it to project files.
I hope this will solve your problem. reply if it didn't.
You have created a new gradle project not a new android project.
Update your android studio tools to 0.2.3 - Go to Help menu - select check for update.
then Update your android sdk tools, android support repository, android support library and android build tools using android sdk manager.
And update some configuration in project structure. Go to File menu->project structure -> in projects tab select Android SDK as default sdk and in SDKs tab set correct path to updated android sdk.
Now restart android studio and try to create a new project and it should work fine.
(Noted for posterity) I had a similar issue come up recently, when importing an Eclipse android project. The issue was that the source folder wasn't added as such. I had to manually go into Project Structure -> Modules -> Sources and make sure that the "src" folder wasn't excluded and was marked a source folder.
Although this question is asked years ago. But now following simple solution worked for me.
Clicking 'Sync Project With Gradle files' makes all directories visible.
I had this exact same issue, there are some problem if you upgrade from 0.1.9 version to 0.2.0 in Windows.
Android Studio 0.2.0 Release
The solution (which worked for me) was to completely uninstall Android Studio and reinstall the 0.2.0 version.
I had the same problem today. Additionally, the IDE posted an "Assertion Error" into its event log.
Downloading and reinstalling the preview version, then applying the patch to 0.2.6 worked for me.
Change the SDK to a level that you have installed in the SDK manager. The SDK manager can be accessed from Tools -> Android -> SDK Manager. For me, Android Studio was packaged with API Level 17 but the new project wizard tried to target API Level 18.

Categories

Resources