Android SDK Eclipse AndroidManifest.xml not created - java

I've downloaded the ADT Kit from the Android Developer Website, but if I try to create a new Project (New-> Android Application Project), the Manifest file is not created. In the console window, I get the message:
'[2013-12-13 15:50:08 - package name] AndroidManifest.xml file missing!'
How can I solve the problem?
I already tried to clean the Project and run again, but the xml file isn't created. I tried also to uninstall (delete) the SDK and download it again, but there is the same mistake.

I found the solution:
First, I Updated my SDK, but it wasnt the problem. The problem was the character 'ö' in the project / package name. Eclipse didn't create the Manifest because of him.
It's a German App...

To fix this problem, right click the project or edited resource and select “Refresh”.
If you edit outside of Eclipse a lot, you can enable auto-refresh by going to Window->Preferences menu, then in the Preferences dialog box, select General > Workspace.
Check the “Refresh automatically” box.
and even in the eclipse in the top menu bar you can find search-->check the automatically build

Related

How can I restore my Android Studio project?

I changed the name of the Android Studio project folder in the Windows Explorer before I started Android Studio. Bad idea.
Now I get the error:
Gradle sync failed: No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android
And all my Activity files are replaced with one MainActivty that doesn't contains the things I've made.
Unfortunately I can't get a previous version with "show history" in Android Studio and i can,t get an older version via windows explorer "restore previous version"
I also tried to decompile it from the .apk on my phone. I got the layout and xml files but can't find my java classes.
I worked since weeks on this project and don't want to lose it.
Can anyone help me either fix the error or restore the .apk?
Thanks so much for all suggestions and ideas
First close the broken project this can be done with File > Close project
Then you have to reopen the project from the new location ie. the renamed folder.
File > Open... browse in your filesystem for the project, select the folder and press OK
Wait for the gradle to sync and hopefully you won't have any problems!
I have the same problem when updating ndk-18. You updated the NDK to version 18 and it is missing the folders/files. You can download ndk-v17 manually and extract the search folder "toolchains" to copy the missing folders/files to your folder android-sdk/ndk-bundle.
From github.

could not open initscript class cache for initialization script

Error:Could not open initscript class cache for initialization script 'C:\Users\Avishek\AppData\Local\Temp\asLocalRepo14.gradle' (C:\Users\Avishek.gradle\caches\2.2.1\scripts\asLocalRepo14_dkwbdtenxxgt2q2wfe57wj30b\InitScript\initscript).
java.io.FileNotFoundException: C:\Users\Avishek.gradle\caches\2.2.1\scripts\asLocalRepo14_dkwbdtenxxgt2q2wfe57wj30b\InitScript\initscript\cache.properties (The system cannot find the file specified)
This error gives when I want to rebuild a project or clean project or run project.
Please someone help me...Thank you...
Don't use Gradle with a fresh version of JDK. It may not support it. In my case, downgrading JDK solved the issue.
You should delete "scripts" folder from "C:\Users\user.gradle\caches\2.4\" via this answer. Then refresh gradle from Android Studio. This worked for me.
You may have opened Android Studio twice. In that case close one of the instances and click on Try Again or Synchronize Gradle, or restart Android Studio. It is because the gradle build was not completed and other dependencies like classpath did not initialize at startup.
You should check android studio power save menu in file. If it was previously selected, then it should be unselected the power save mode in android studio in file menu. I hope it will be worked.
In my case I have deleted .gradle folder and clean the project on re run the project was working fine.
Close the android studio
Delete this file from your pc C:\Users\Avishek\AppData\Local\Temp\asLocalRepo14.gradle
Delete folder from your pc C:\Users\Avishek.gradle\caches\2.2.1
Your app in .gradle and .idea file is also delete
And start your android studio
2022 New Answer for Kotlin base projects
Open IntelliJ IDEA CE
Click Create New Project or File/New/Project
Important !!!
Select Kotlin from left side of window.
Select IntelliJ in Build System.
Click Next.
Done. You will not have this error when you run your Kotlin file in the IDE.

How do I open open-source projects in Android Studio?

I'm very new to Android programming, and I wanted to try learning by example. I found this open source project on Github: https://github.com/android/platform_packages_apps_contacts
I was hoping to open this in Android Studio so I could modify certain elements and see the result by running it, eventually learning how the process works as a whole. The problem is when I download the zip file and try to open the folder inside with Android Studio, nothing shows up. Any help would be appreciated!
In Android Studio, close all open projects until you get the "Welcome to Android Studio" screen. Choose "Check out project from Version Control", and in the popup, choose "GitHub". Screenshot:
Follow the UI from there.
Try to checkout it directly into Android Studio, VCS->Checkout from version Control->Git
Open all projects using:
Import project (Eclipse ADT, Gradle, etc)
I usually open my project that is saved in Google Drive in other computer, and the next option never work to me:
Open an existing Android Studio project
I always use the first option to avoid problems.
Use Open an existing directory in Android studio.
Navigate the project you wish to open to the directory containing such folders as:
manifest
java/src
res
...etc.
Now, Open.
By default, on Android Studio 2.2.2, when you open an existing Android Studio project, you land on an empty page showing only the name of your project on the top left (just below the open, save, refresh shortcuts icons) but side panels that contains your project structure and details are hidden.
You can open these panels either by pressing "alt + 1" as suggested on the background of the "starting IDE page" or by clicking on menu: "View" -> "Tool Buttons".

Eclipse incorrectly generating new Android project

I am attempting to create an android project through eclipse as I have many other times, but today Im having a strange problem. After choosing new project - Android project - setting my name and target SDK - icon/empty activity etc. When I have to name the empty activity I enter a name and if I click Finish nothing happens and the name activity menu stays there. The next button is greyed out.
The only thing I can do is cancel out from there. In my project explorer the project HAS been created though. There are no src files, no activity or anything really. A small manifest file and some empty resource files.
Im not familiar with the icons associated with these files and folders. I dont know why this is happening. I have tried "Help" -> "Install new software" and install from url: https://dl-ssl.google.com/android/eclipse/ and have also tried updating and install all current SDK's but nothing seems to work.
Has anyone else experienced anything similar?

Error when importing an existing project to eclipse

So I'm trying to import an existing project to eclipse and when I do I get the following error. The main folder of the project in the package explorer has a red exclamation mark (!) next to it and console says the same error 3 times:
[2013-07-10 14:23:39 - Myproject1] Project has no target set. Edit the project properties to set one.
[2013-07-10 14:23:39 - Myproject1] Project has no target set. Edit the project properties to set one.
[2013-07-10 14:23:39 - Myproject1] Project has no target set. Edit the project properties to set one.
I did my research on this error and found a bunch of stuff on this website already but nothing helps. People are mostly getting this error when they try to execute the imported project, not as soon as they import it. I also tried setting the "target set" in the project properties, as the error tells me to, but I can't find where to set the "target set" anywhere in the properties.
One more thing worth mentioning also, if I open the src folder and try to open any of the *.java, everything is blank, the "code" opens but it's blank. Any help would be greatly appreciated!
The file 'project.properties' is missing. It must reside in the root-folder of your project.
( Where the AndroidManifest.xml is located )
You should create a new android-project and import the sources and resources
OR create it manually.
Example content for project.properties:
# Project target.
target=android-17
Greetings
Christopher
set android target version on your project manifest xml file or eclipse ->right click project click properties->select android tab->check latest android version on the list like below screen shot:
after click ok button will apply wait some seconds after your issue will be solved!
you should try fixing project properties:
rightClick on Project -> Android Tools -> Fix Project Properties.
That resolved my issue!
You are probably importing your project folder on your workspace. In my case, i got that same error, so i just move the project folder to "C:" and tryed to import again. And bingo!

Categories

Resources