Creating a new Android Application Project - android

I am new to Android Development. I tried to create a new Android Application Project using Eclipse but when I click 'Finish' the windows remains open. When I close it, the folder hierarchy is as follows:
I don't think that this is correct since no AndroidManifest is present
Also, these are the errors that I get in the error log:

Sometimes deleting your Debug Certificate would work. This would be located inside your profile folder (In Windows, %USERPROFILE%/.android would be the correct location). Now clean build your android project. It should work.

Related

Specific Android Studio project won't open

I'm able to open all my AndroidStudio projects but one. The window don't even show up and the preview form Windows is just a blank page.
I already try to clean cache, delete gradle files - from the project and the one located on the user directory - .
preview with a working project on the side
I was resolving this issue for weeks and this is what finaly helped:
open "File/Open Recent/Manage Projects..."
find the faulty project and remove it from recent projects
open "File/Open..." and open the project again manually
when the dialog appeared, I pressed "this window" and it finally opened.
There may be some corrupted project configuration file.
Try to create a new project, check that everything works, and then copy the app/src folder from the old one to the new one (only the src folder).
You didn't mention it but I hope you have already tried restarting your pc, otherwise try.

Android Studio | Unable to run newly created project(s)

Since recieving the latest update from Android Studio (AS), my project was no longer able to run. After dealing with a few of the 30+ IDE errors I found manually cloning the entire project to be more efficient.
Though, when I create a new empty project it is not able to run due to the following error:
Could not identify launch activity: Default Activity not found
So I tried the 2nd and 3rd suggestion offered by this thread:
Error: Default Activity Not Found
But this made no difference.
Then I have reinstalled Android Studio, but unfortunatly without any improving results.
So now when I want to run any newly created project, it tells me it cannot find a registered activity. As one can see in the image, the activity is registered in the manifest.
I am hoping for new things I can try so I can finally move on with my work.
Build -> clean project then rebuild project.
I got it fixed by following the instructions of this post:
https://stackoverflow.com/a/52829860/4895256
What worked for me is to remove (or you can move it as a backup) the
".AndroidStudio3.2" (for you it will be .AndroidStudio3.1) folder
located in "C:\Users{username}\" and then reopen the Android Studio.
While launching I selected to import settings from the last version
and proceed. it will reconfigure all the settings.

Android First App unable to create

"problem in creating first android application without any error"
I am new to android application... I have already installed eclipse Juno and used it to run simple java programs. Then I downloaded Android SDK bundled with ADT, which has eclipse attached with it. Therefore, when I opened newly installed Eclipse ...
I found my old files made in existing IDE also accessed via new eclipse IDE.... and new-- > android app option was too showing
To resolve 2 IDE issue, I deleted old existing IDE in My laptop and using Bundled eclipse, created a new android application ..
But on clicking finish button when i was naming the file: the first step that is now not creating any package or application ..
and not showing any error message..
"I have searched across Google found application creation problems are with error messages...."
but in my case No error message is shown .. still unable to create ...
Not getting what is the problem here..
please help me to find the problem thanks...
Create a new workspace (only for Android apps) from the File menu.
After Eclipse restarts in the newly created workspace, create your File->New->Android app project.
If the above two steps do not work for you, please post if you have Android SDK installed and Eclipse->Preferences->Android is pointing at the right location.

Android Support package not present in SDK Manager

There is no android support package in my SDK manager, as shown:
And whenever I try to create an android application project I am presented with this screen at the end:
If I click install/upgrade this appears:
And it installs and everything, but nothing happens and it stays on the same screen as before. Clicking check again doesn't do anything either.
How can I get this to work?
For some weird reason android-sdk decided to install everything in /extras/compatibility instead of /extras/support which eclipse recognises, so I renamed /extras/compatibility to
/extras/support and now everything works fine.
Find your SDK directory, navigate to /extras/android/, in this folder you will see a folder named "compatibility", rename this folder to "support". Re-open Eclipse, create new Android Application Project, the process will complete without this problem occurring again!

Not able to create new android project in android

eclipse is working fine with importing a project which already exist. But i am facing problem while am creating a new project in the android.
And then am trying to change the path in the properties of the project which i have created then it is showing some kind of error and screen shot of it is
Can any one help me in this.
Assuming your d: drive is an actual hard drive you have the android-sdk in, and not some DVD/CD drive you tried installing the android-sdk from.
You should click on your new android project folder, right-click and click on "close unrelated projects", then the right files will get generated correctly (re-initiate a manual rebuild if you have to).
The problem was that Eclipse was trying to rebuild all the projects you had in your workspace, a number of which already contained errors in them. Not only those other projects were clogging up your error log, but when an error is detected by the packager/builder, the building process gets stopped entirely.
Now just in case this wasn't your only problem, do Help > Check updates
After that, click on the menu Window > AVD Manager and something
and make sure that you have the latest SDKs and AVD updates already installed.
Also be aware that Pulsar is not the recommended version of Eclipse for doing Android development, although this probably wasn't what was causing your problem.

Categories

Resources