Eclipse has exported the keystore file but not the .apk - java

I have completed my app which runs perfectly and am now trying to export it using File => Export. When I do the keystore file gets created but the apk file does not. Eclipse get hung up after hitting the Finish button continuously pending (cursor shows loading icon). This last for up to 40 minutes when I decided to cancel and start again.
When I move the cursor around eclipse afterward the cursor still shows loading in certain panels, like package viewer and task. When I close eclipse and restart it I get the infamous "Workspace in use and cannot be create..." prompt. I, then, go to the meta folder and try to delete the .lock file to no avail, not even the program unlocker works. Task manager also cannot end the task (the CPU usage shows 0% but the memory shows a value and eclipse remains present in task manager).
The only thing I find that allows me to enter eclipse is to reboot my Windows 8.1 pc. Afterward, the same issue repeats itself. Any idea on what gives?

when you get to save file (destation APK file) click browers and you have to type .apk after it. eg filename.apk.

Related

Nebeans 8.2 freezing when performing certain operations on ubuntu 18

Netbeans is freezing when I open a particular file, it freezes and I have to kill the process. When I debug the file the entire OS freezes and only the mouse cursor stays active. I have to press the power button to reboot. When I press CTRL + f and I try to find text inside that troubled file the netbeans freezes. What can it be? I've tried to create another file and copy the contents it didn't work. I've tried to clear and build the projects and it didn't work.
Get rid of the project and clone it again! It solved my problem.

"Workspace Currently in Use" in Eclipse

I normally only use Eclipse just to code in Java for class, but today I decided to use it for my own personal projects. I didn't download anything funky and essentially only used FileWriter, java.util, java.io, and ArrayLists.
Suddenly, after running some code, I was told that Eclipse was no longer responding and had to force quit the program.
Afterward, I couldn't open Eclipse again because the workspace was currently in use.
I've looked up this problem numerous times, and what a lot of people were saying was to end Eclipse through the Task Manager and then go into the metadata file and then delete the .lock file, which I did. However, every time I opened Eclipse again, the program would load up, but there would be no workspace for me to work on. I'd try clicking the icon again, and now the "workspace was currently in use" window would pop up, and I'd go and see that the .lock file had reappeared in the metadata file, again, even though I'd deleted it.
I read somewhere else that another option was to relocate the metadata file, open and close Eclipse, and then overwrite the new metadata file, and it still hasn't worked, considering the .lock file ends up in the metadata again, somehow.
Is there any way I can fix this or am I just better off reinstalling Eclipse?
Thank you for any help, and sorry if this is very simple—I'm still very new to all this!

Why did a Java program keeps running even if I delete the executable .jar?

I would like to know why this happens and wether this will always continues to happen when I delete a .jar file.
This behavior would speed my updates to new .jars. I will be able to replace the .jar with a new one and restart the application right away.
I am always using linux to deploy my applications.
Linux does not completely delete the file as long as it is still used by a process. It will only disappear completely when the last user terminates or closes the file.

Libgdx stuck generating an app

When I click on the downloaded libgdx file I select run with Java then the libgdx window pops up I check android (and tried to check desktop too) and leave the names default and some times I tried to change them and for extensions I leave it as default the only one checked is box 2D.
Its says in the little console below that it's generating an app in my desired path then its just stuck there for hours.
(I checked task manager and its not using almost any resources other than 60 mbs of ram)
This problem could possibly happen if the application cannot write into the destination folder you choose. So avoid making the destination folder inside the system32 folder or such.
Run the jar file from the command prompt to see the exception it generates which should explain the problem:
Hold down the Windows button and tap the 'r' key.
In the dialog type 'cmd' then enter.
Copy this text using ctrl-c, include all quotes. Adjust the file names to point to your Java VM runtime and your downloaded
gdx-setup.jar file: "C:\Program
Files\AdoptOpenJDK\jdk-8.0.222.10-hotspot\bin\java.exe" -jar "C:\Users\keith\Downloads\gdx-setup.jar"
Paste the text into the command prompt by pressing ctrl-insert (the zero key on the numpad). Alternatively, tap the top left icon,
then edit, then paste.
See what the specific exception is in the cmd console when the gdx setup program runs.

Installation errors: INSTALL_FAILED_INSUFFICIENT_STORAGE

I tried many methods to fix Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE but until now, I can increase my intern storage memory.
The method I tried:
Right click the root of your Android Project, go to "Run As" then go to "Run Configurations..." locate the "Android Application" node in the tree at the left, then select your project and go to the "Target" tab on the right side of the window look down for the "Additional Emulator Command Line Options" field (sometimes you'll need to make the window larger) and finally paste "-partition-size 1024" there. Click Apply and then Run to use your emulator.
Go to Eclipse's Preferences, then Select “Launch” Add “-partition-size 1024” on the “Default emulator option” field, then click “Apply” and use your emulator as usual.
Open your .Android directory. Usually in your home directory. Then go to avd and then open the directory that has the name of the avd you would like to change.
Now edit the config.ini file and add the following line or modify the following line: disk.dataPartition.size=1024
This all worked for me in Linux.
I used my app to store in external storage by using this:
android:installLocation="preferExternal"
but then I received
Installation error: INSTALL_FAILED_MEDIA_UNAVAILABLE
Error
Installation error: INSTALL_FAILED_MEDIA_UNAVAILABLE
means that your device does not have SD card.
Error
Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
means that you don't have enough space on device for your app.
You should do next:
Write android:installLocation="auto" and android itself will care where to install your app - internal or external memory.
Be sure that device has enough memory for installing (usually it is more then size of apk).
If your app really need much space - read this guide.
If you use emulator - setup sd card support:
Try with these options, with that configuration I'm able to install one app of 23MB:
Try uninstalling apps that are installed on emulator and not inbuilt. you can also change the size of SD card by editing emulator settings but then it will take time to run your app as that much memory needs to be converted into a mountable partition.
I have also had a similar problem when I run my app. In my Google TV emulator, it does not show USB storage for external storage. Try to increasing the cache memory and ram size in a emulator new hardware.
How to increase virtual memory of emulator:
\\emulator -avd "Emulator Name" -partition-size 500
After that, try to install your apk.

Categories