Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio "Project Structure" not coming properly

I follow all the necessary steps for Android Studio installation. I also checked this question, but still facing the same issue.

But whenever I create any new project, following screen come. I couldn't found any project structure as I can see in Eclipse.

enter image description here

Here, I can't find any "src","res" or any file structure. Any idea, how to get proper Project Structure?

when I tried to add "New Module" following error comes to submit.

No message java.lang.IllegalStateException:  at com.android.tools.idea.wizard.NewModuleWizard.onFailure(NewModuleWizard.java:159) at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3.execute(ExternalSystemUtil.java:340) at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$4$1.run(ExternalSystemUtil.java:364) at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:493) at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:304) at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:185) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:226) at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:175) at com.intellij.openapi.application.impl.ApplicationImpl$10$1.run(ApplicationImpl.java:695) at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:458) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:154) 

When I go to Edit Configuration, can't create any module due to above error.

enter image description here

like image 362
Chintan Rathod Avatar asked May 24 '13 04:05

Chintan Rathod


People also ask

How do I organize my Android project?

Android applications should always be neatly organized with a clear folder structure that makes your code easy to read. In addition, proper naming conventions for code and classes are important to ensure your code is clean and maintainable.

What is project structure in Android Studio?

Project structure settings Project: Sets the version for Gradle and the Android plugin for Gradle, and the repository location name. Modules: Allows you to edit module-specific build configurations, including the target and minimum SDK, the app signature, and library dependencies. See Modules, below.


2 Answers

Go to File > Project Structure > Project Settings > Modules.

Click on the green colored + and add new module. select Application module and set the content root to your project module.

Click next and then finish.

This should do the trick and the complete project structure will appear. It worked for me.

like image 142
Maddy Avatar answered Sep 20 '22 07:09

Maddy


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.

like image 29
theblang Avatar answered Sep 20 '22 07:09

theblang