I have a problem with Eclipse, I am a Android developer, and when I edit in a XML layout file, I want to run as Android application with shortcut Ctrl+F11, but it will automatic run as XSL Transformation, and create a xxx.out.xml in current folder, how can I disable it?
Thanks for your help, and sorry my English.
One way to avoid this problem is to configure Eclipse to always launch the previously launched application. To do this navigate to Window -> Preferences -> Run/Debug -> Launching -> Launch Operation and select Always launch the previously launched application.
I find this option to be more a lot more convenient than launching what is currently open.
Related
I've got a problem after updating Mac to Big Sur 11.0.1.
All interstitial dialog windows, Device Manager, Preferences, SDK options, and etc, are not opened as interstitials/dialogs in fullscreen mode, but as a tab in-app. Then, Android Studio freezes and is not responding.
i.e.: Commit Changes Window
Any ideas how to fix it? Thanks!
System Preferences > General > set Prefer Tabs to never when opening documents.
Alternatively, run this on Terminal and restart Android Studio:
defaults write com.google.android.studio AppleWindowTabbingMode manual
This works while keeping the tabs active for other apps.
Go to the Apple Menu, select System Preferences > General. In the Prefer tabs when opening documents option, select "never". Then restart Android Studio.
I solved by clicking the -> System Preferences -> General -> Prefer Tabs and select "never". I have no problem using the latest version of IDEA, it may be that the version of IDEA on which Android Studio is based low.
You can try : System Preferences > General > Prefer Tabs and set #never when opening documents.
I hope solved this problem.
I think the ideal place to fix this is in the native code in the app launcher. In AppBundler we recently made this change which sets the tab mode before loading the JVM. It's basically the in-app equivalent of running "defaults write" in the terminal but doesn't require executing a process.
I am following a tutorial on creating a custom keyboard for an Android device. I am using Android Studio 2.1.2. There is no activity in the program because you have to activate the keyboard in the language & input settings.
When I run the program I get this error: "Could not identify launch activity: Default Activity not found
Error while Launching activity"
I have posted on the site but have gotten no response. I followed the tutorial step by step and looked it over for a couple of days. I am new to Android Studio and Android applications and was wondering if anyone knew how to help me.
This is the link to the site I am following: http://code.tutsplus.com/tutorials/create-a-custom-keyboard-on-android--cms-22615
I just figured out what needed to be done.
You have to edit the configurations and change the launch option to "nothing". This way it won't try to launch and activity that does not exist.
run->edit configurations then look for the launch options
Well you have answered it by yourself.
If you are creating an keyboard application(inputmethod) in android, everytime you compile and run your applcation, it will show a warning that there is no default activity since it's InputMethodService, the service. Even you add activity like some settings activity for your keyboard, it will still show you warnings and it's the normal operation.
I am creating a live wallpaper in android studio. I do not want any UI besides the wallpaper, so my application contains no activities.
However, when I try to deploy to a device, I get the following error and my wallpaper will not load.
Could not identify launch activity: Default Activity not found
Error while Launching activity
How can I create an application which works that does not have a main activity?
It's perfectly fine to have no activities in your application. The build succeeds, Android Studio only fails when it tries to run it, because it doesn't know what to do.
You need to modify your run configuration. Go to "Run > Edit configurations" and under "Launch options" change "Default Activity" to "Nothing":
This is what I am currently seeing. (inside Android Studio project)
Is there a way I can get to the opening Android Studo home screen from here? By home screen, I mean
I tried closing the project and starting the studio64 executable but that took me to my existing project(GradeTrackr, same one that I closed)
I tried looking this up via the all powerful search engine. - https://www.google.com/#q=how+to+get+to+home+screen+of+andorid+studio but couldn't find anything
Is there a way I can get to the opening Android Studo home screen from here?
Choose File > Close Project from the main menu.
I'm a .NET developer but I like JAVA so in my free time I play around with that. I don't normally use Eclipse but I installed the ADT eclipse plugin and Andriod SDK and I started learning and I made a new project with a TableLayout and it kinda looks good, and it runs ok on the emulator.
However... there a few things that drive me absolutely catatonic and perhaps I am doing something wrong so please help me out.
Firstly, if I change the main.xml file in whatever way, even by adding what is supposedly a correct parameter, it will start freaking out and will generate an error that just says "error" without specifying what that is, it will then generate a main.out.xml and then report an error that the main.out.xml is empty. It later won't let me delete that and will start generating a main.out.out.xml and so forth, even after I correct that original xml that caused the error.
The only way to get things going is to delete the bin folder, restart Eclipse, delete all the out xml files and then sometimes it will run the application or some other times it will start generating those 'out' files again and the loop goes on.
That way it takes hours to run a simple app even one without errors that used to run before.
Surely that was NOT how they intended it to work, is it??
Also.. there is no "Rebuild" button that will flush all files out automatically, or is it hidden somewhere? I am tired of manually deleting those automatically generated files and the build folder and all those out.xml files.
Also, while I'm at it, I also want to point out that the designer view sometimes disappears and there is nothing on earth that will bring it back, the only way is to create a new project and copy the main.xml to it and then it shows up again. Another bug?
I have the latest eclipse version:
Version: Indigo Service Release 2
Build id: 20120216-1857
If you have any clues how to get this to work, I will appreciate it!
Many thanks in advance
When you click the Run button with an XML file selected, Eclipse is running an XSL Transformation on that XML and producing the .out.xml file as the result. This is a feature of the Eclipse Web Tools feature, which you'll have if you installed the Eclipse for Java EE Developers package (it may be included in other packages, too).
As others have said above in the comments, to run your Android app, select the Project, right-click, and choose Run As > Android App. Once you've done that once, it will create a Launch Configuration that you can launch from the Run or Debug toolbar buttons (pressing the small down-arrow on the Run or Debug buttons brings up a list of Launch Configurations that you can select from, as well as an option to manage them).
There is a Preference that will make Eclipse always launch the last thing you ran or debugged, instead of trying to be smart about what is currently selected. Open the Preferences and navigate to Run/Debug > Launching; there you'll find the option under Launch Operation at the bottom of the window.