Intellij doesn't create main files ans resource in create project - android

I'm using the latest version on Intellij for programing and developing Android. After installing and tring to create project for first time, Intellij doesn't create a main files/folders and manifest and I don't have them in the project. Please see screen shot:
I tried to do file - invalidate caches/restart and tried to define the Android SDK again, but my problem doesn't resolve.

Be sure that you follow all this steps:
https://www.jetbrains.com/idea/help/creating-a-gradle-android-project.html

Related

Android Studio : Open Android Module in Android Studio option is missing in flutter project

I am developing a flutter app for both iOS and Android. When generating the APK, I prefer to use Android studio (my default IDE is VSCODE). However, when I go to Tools > Flutter I do not see Open Android Module in Android Studio option. I do see Open iOS Module in Xcode.
I followed couple of SO answers, even tried replacing android.iml file from a working project. Nothing happened. I re-cloned my project from BitBucket because sometimes the Android Studio was fine when the project is freshly from repo, but this time, that didn't work either.
I Also tried opening the gradle file and looking for the option (as explained in one SO answer), that didn't work too.
However I noticed, few issues.
In the folder structure, the root folder is replaced by the flutter icon. in projects where I have no issues with, the folder icon is folder.
In here I see .dart_tool folder. In working apps with no issue, I do not see this folder.
I do not have an android.iml file. In other projects I did.
Below is my folder structure in a nutshell. Whats going on here and how to fix this issue?
When you don't see any options to
open module in android studio
because of missing .iml files caused by .gitignore file, follow simple steps.
Click on File and choose Open..
Now in the opened dialog choose android folder of example flutter project under your plugin module. For e.g if test is your plugin with example as it's app then you need to select and click Ok
test\example\android
3. Then wait for Android Studio to sync and download necessary jar files.
Simplest solution
Open flutter project
Go to android folder
open manfiest file
On the top right you will see option open module in android studio
click on this option
Solution 2:-
Import your android project as a project in android studio
The easiest way is to use this command in the root directory of your project, it will create some missing files and it will definitely work.
flutter create --platforms=android .
Now just right click to Android folder

can't create Android project

I'am beginner in Android I can't create android project, can you help me ? I already installed jdk I don't know what's missing
first page android
windows installation:
Install JDK first before A.S.
Install Android Studio with SDK
Check whether Android PATH already in your environment path
Then follow this https://developer.android.com/studio/projects/create-project.html
You have to simply follow the android developer official page to start your first project.google official blog
And once you download the Android studio ,then follow the following link.to start developing your first project.
If gradle build finishes without error (see event log at the bottom-end of your android studio) and if you has added any activity (during project setup or later) change the view to android from project and you can find layout folder under res and also activity.java in java/{your package.name}.
Hope this helps.

Android Studio : Unable to delete original file

I'm very new to android and I just recently cloned an Android project.
When Android Studios performs the indexing once opening the project, i get this error all the time.
this is the error I get from Android Studio.
Error:(89, 0) Failed to delete original file 'C:\Users\myname\AppData\Local\Temp\gradle_download8065263342645015068bin'
after copy to 'C:\Users\myname\.gradle\caches\modules-2\files-2.1\com.android.tools.build\gradle\1.5.0\1c3d2b23212349ffbe6479fcb04732c5cddaf98b\gradle-1.5.0.pom'
Open File
Try the next step to "Refresh" your IDE (android studio)
Choose File | Invalidate Caches/Restart.
Another possible cause is the Anti-virus. It may block Gradle or Java
There can be multiple reasons for this error but are usually linked to Rights. I solved this by following these 2 different steps at different times.
Run Android Studio as Administrator
Check if the your project folder is read-only ? If yes, remove the read-only attribute from Folder Properties.
If Invalidate Caches/Restart doesn't work, change your GRADLE BUILD TOOL to any lower Version, or different Version untill it works
For me I got the error for Gragle 2.2.3, but fixed when I changed to 2.1.3, you can try with different newer versions from here Gradle Build Tools
I was able to solve my issue by disabling the Instant Run feature of android studio.

Is there any way to Know the Project is build in Eclipse or Android Studio?

I Would like to know is there any way to know the project is build in Eclipse or Android Studio.Let's say I have one project how can i know this is build in Eclipse or Android Studio.
Detail Description :
I Download one apk form Play Store and I get the source code like below image format.
Any Help be Appreciated. I Search lot of thing but doesn't work me.
The project from your screenshot is built in Android Studio. The highlighted .iml file is an IntelliJ IDEA project file and Android Studio is based on IntelliJ IDEA. Moreover it looks like a Gradle project - there is a gradle folder and gradlew script, which is usually another sign of using Android Studio.

Gradle sync failed in android studio

I am using eclipse for developing android applications.Its works good and I can debug and run the application.But now I installed android studio and move to creating new apps using android studio,But i get the following error
Gradle sync failed
What is gradle and how can i fix this problem, Now also I can't import my eclipse project to android studio
I had the same issue when importing my project from eclipse to android studio. I'll tell you how I fixed it. It's simple.
- Solution 1: It is possible to import your project from eclipse to android studio, but android studio version 1.2 currently has bugs with that. What I did is I created a new application with the same app name, same package name, same minimum api and all these things... Then normally, go to your app's folder that you want to import it from eclipse, and copy it's src folder and java folder, maybe asset and libs folder too if you have them, and paste it to your newly created project in android studio by going to that folder: "Users/AndroidStudioProjects/appname/".
If that's not your issue, try the other following solutions:
- Solution 2: Add this to your gradle.properties file in the project. This will just increase your android studio's memory:
org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512m
You can also replace 512 to 1024 if you have enough memory in your pc.
- Solution 3: Try to close all your pc apps that consume large memory, and try that: In android studio, there is a toolbar at the top, where there is "Build" tab. Select Clean Project then Rebuild Project. Then try to sync your project again.
If you find the File Encoding Error is showed in your log when trying to sync your gradle, click on it and change the project formatting to UTF-8.
Source: https://stackoverflow.com/a/30498383/4843993
I would prefer to start solution 2 then 3 first before trying solution 1. If you still face the same issue, tell me. :)

Categories

Resources