I'm not able to create a new android project in eclipse. Whenever I try to create one & reach last screen of the wizard & hit finish button, a empty project (just folder structure) project with the same name gets created in navigator window but the wizard does not go away.
And in Error console it is showing:
Failed to load properties file for project 'xxxxx'
Failed to finish PrecompilerBuilder#startupOnInitialize() android
It still has that finish button & nothing happens on clicking it again.
tried re-installation but not worked.
operating system: windows 7
what to do? any suggestion......
I have to give the answer of my own question as,
It is solved by installing API level 16 in the sdk version 21 and ADT version also 21.
Thank You.
Related
ANDROID STUDIO 3.0
I am new to Android Studio.
Now, when I start a new project it successfully runs. But on the top, right below the tabs it shows an error.
Gradle project sync failed. Basic functionality will not work properly
Then I figure out the solution to by installing the required component from the message view:
Clicked on "Install Build Tools 26.0.2 and sync project
After trying to install the component, it shows me an error:
An error occurred during installation: Failed to move away or delete existing file
PLEASE HELP.
THANKS!
Why don't you just delete the folder below?
C:\Users\???\AppData\Local\Android\sdk\build-tools\26.0.2
It seems that your android studio doesn't have permission to delete.
Edited:
Even though this is not a your original question, but...
If you doesn't have permission to access the folder, try this:
Goto parent folder of the folder you want to delete.
Right click the folder and select properties
Click secutity tab - Click advanced - Click owner
Click edit - Select user (your name) - Click apply
And you can delete the folder.
Run Android Studio as Administrator. Although I have local admin rights, updates failed and have since day 1, even on older versions too. On older versions running as admin didn't fix the problem, I did manual updates. Today I discovered that with 3.0 running as admin works great.
If you have a desktop icon, go to properties>Shortcut>Advanced and check "Run as Administrator". Now every time you run from the shortcut, you will run as administrator. At least it fixed my problems.
I have been using eclips for android programming since about 6 months. Everything was working smooth till yesterday.
On restarting Eclipse it shows error on every project and all of them say:
Unable to resolve target 'android-21'.
And I can't even create any new project as it always says
Base Theme "Holo Light with Dark Action Bar" requires a build target API version of at least 14, and the current version is 8
And I cant start SDK manager from eclipse. Please help, and thank you everyone in advance. :)
Go to Windows -> Android SDK Manager Install the Android API Level you want, in this case 21.
Once you've finished installing, go to Window -> Preference -> Android. You should get a list of available targets. Click Apply then Ok.
Now right click your project, go to properties. Click Android. Choose your desired target.
I have Eclipse Juno SR1 and Android SDK Tools 21.1, SDK Platform-tools 16.0.2 (latest) on Mac.
When I have some XML file selected and hit Run button, nothing happens. I have to select some Java File or project in the Package Explorer. Then it runs. It's quite annoying when I edit XML files. It was working in previous releases of Android SDK Tools.
Anyone knows any solution or workaround?
I think its due to some recent changes in ADT 21.1.0. Anyhow, to resolve this, you may configure the following in Eclipse:
Window -> Preferences -> Run/Debug ->
Launching -> (under Launch Operations) Always launch the
previously launched application
In case you want to open another project, then you need to revert this process as it will always launch the previously launched application.
Also, keep in mind that this issue may be fixed in the future versions of ADT, so don't rely hard on this solution.
I'm not able to create a new android project in eclipse.
Whenever I try to create one & reach last screen of the wizard & hit finish button, a empty project (just folder structure) project with the same name gets created in navigator window but the wizard does not go away.
It still has that finish button & nothing happens on clicking it again.
The project created in navigator should have at-least few files for me to start working on it.
Any help?
I'm using eclipse indigo on ubuntu 12.04
try to Use Following Suggestion i'm Not Sure But Might Help you.
1 ) Just go with default launcher image (blue smiley) instead of customizing it and it should work.
2) If you have installed support library>8 Still get the error msg
-->Delete the support library from the SDK manager
-->Create a new project & install the support library by clicking on "Install / Upgrade"
also Check this answer for More Information.
Hope it will Some How Help you.
This might happen due to improper instalation..Can you specify what the message/error, it showing when you click finish on your project creation..?
else try to install eclipse again in someother location..
Installation steps-click here
Fwiw, I had this problem and I ended up reinstalling eclipse and the sdk, but I instead of installing them separately, I installed bundle:
http://developer.android.com/sdk/installing/bundle.html
and I don't get have this problem anymore.
I need to change my projects's build target from 2.2 to 2.3.3 in order to use Google API with map support. I changed the manifest's min- and target SdkVersion to 10. And the project's properties|android to 2.3.3. And under my project folder in Eclipse there is then the Android 2.3.3 directory to indicate that the stuff worked out that far.
But when I try to run my application I get the non-informative Eclipse "Problem Occurred" dialog: An internal error occurred during: "Launching MyProjectName". java.lang.NullPointerException
Now even if I change back to 2.2, I cannot make my old classes run. Again, Eclipse-hell has broken out. Its huge mess fails to find its own files. What can be done to help this? Other that starting all over again.
If you want to change your build target for an application, you need to follow these steps
Project -> Right Click and Select properties
Select Android option on left side pane
In the Project Build Target on right side pane, select the target you wish
That is it. Thanks
If I were you, I'd do Project > Clean in Eclipse to see if it helps.