Android apk problem - java

When i create one apk from one machine and try to install into a device .it successfully get installed .But when i try to connect the same device to another machine and try to deploy same application from different machine.It doesnt allow me .I need to uninstall the application and then it works correctly .What is the issue for that .What i need to do to resolve this issue.
Thanks in advance.

Could you provide us with the output from console or the terminal prompt. There is usually an error, telling that the Application is already install, and you have to use the -r re-install option, OR that the apk has been signed with a diffrent certificate/key.
If its none of the above, please provide whatever error/output you get... If there is no more info on the output, please start the Dalvik monitor (ddms) and see what happens via the log...

Related

qemu-system-x86_64.exe is not responding

I just installed Android Studio and I've been trying to figure out for the past 3 hours why it is that when I try to run my newly created project on a emulated phone it doesn't work. It's not even that the program doesn't work, it's that it freezes the moment I open it. I've tried uninstalling/reinstalling HAXM, SDK's for the phone, and recreating the phone / wiping the data on the phone and retrying, and nothing's worked so far. I'm wondering if anyone else has experienced this problem or knows what causes it? Please see picture to see what the problem is. P.S I'm using Android Studio on Windows. My system is beefy and should be able to run the emulator fine. I have Virtualization Enabled too.
This help me in getting it to work: switch off HyperV on Windows:
open Powershell as Administrator and run:
bcdedit /set hypervisorlaunchtype off
Reboot afterwards. Alternatively, run 'optionalfeatures' and select the HyperVisor platform to remove. To test if it really worked, run:
emulator.exe -verbose -avd <YOUR AVD NAME>
You can list the AVDs with 'emulator.exe -list-avds'.
Not my credits, but those of 'viet-quocnguyen'. See https://github.com/microsoft/WSL/issues/6471#issuecomment-770417782

I dont' know how to install libXtst.so.6 library required for my application deployed on heroku

I have made a spring-boot app printing some created files in Microsoft Word. Locally it works fine. However when i try to print them via an app deployed on heroku such a problem occurs:
There was an unexpected error (type=Internal Server Error,
status=500). /app/.jdk/jre/lib/amd64/libawt_xawt.so: libXtst.so.6:
cannot open shared object file: No such file or directory
From what i looked up in google i believe i should install somewhere libxrender1:i386 libxtst6:i386 libxi6:i386. I just don't know where to find it and where exactly should i put it. I would be really happy if someone could help me sort this out.
From what i looked up in google i believe i should install somewhere libxrender1:i386 libxtst6:i386 libxi6:i386.
That is incorrect: the reference to the libXtst.so.6 comes from .../jre/lib/amd64/libawt_xawt.so, so you need a 64-bit version of libXtst.so.6, not a 32-bit one.
I just don't know where to find it and where exactly should i put it.
The answer is: use package manager that comes with your system (you didn't tell us what OS you are running).
This could be sudo apt install libxtst6 (Ubuntu / Debian), or sudo yum install libXtst (CentOS or RedHat or Fedora), or something else.

java application trouble on raspbian

I'm trying to run a java application on my rapsberry but I face some problems when I run this.
The application is successfully compiling and running, but I have a warning that seems to be the reason why it doesn't work well.
My application uses Telldus devices : The TellStick duo and I should see on the screen my devices and sensors to add them (it works on my computer), but the problem is that the application seems not recognize devices, and it could be caused by this warning :
ouput in my console
I (think) have understood that it can't find the file libTelldusCore.so, in the linux-arm folder. But after some research, I don't find the linux-arm folder.
Maybe I have did something bad, maybe I have forgotten something, I'm quite beginner with raspberry's systems.
So, if someone could help me, I would be very thankful.
Have you installed telldus-core library?
If you have not, try this, might help:
apt-.get install cmake libftdi-dev libconfuse-dev
wget http://download.telldus.se/TellStick/Software/telldus-core/telldus-core-2.1.1.tar.gz
tar -zxf telldus-core-2.1.1.tar.gz
cd telldus-core-2.1.1
cmake .
make
make install
Source: https://www.raspberrypi.org/forums/viewtopic.php?f=26&t=26386

Failed to install apk on real device

Like many I get this error but none of the solutions I found here did the job. I don't get this error when installing on an emulator, but I get this error with every app I'm trying to install.
This morning my phone went into save mode. After that I can't install an app anymore. The phone is already out the save mode though.
I don't get any errors in my logcat. Don't know what to do anymore. Could someone help?
It is similar to this question, but the only answer he got, I already tried.
Problem solved tanks to LisuBB
You can try to uninstall app from your device by executing
adb uninstall _nameofapp__
Try also to restart Android server
adb kill-server
adb start-server
and then try to install again.
check your phone's memory and see if you have enough memory . and restart it and check again.
Does the adb install work?
If so, try to install on an external sdcard through the cmdline.

Java is not working in my PC

I had installed Java in my PC and it was working perfectly. Suddenly something went wrong and now I m not able to open swing applications and its showing the error 'Java not found'. But I can run the Eclipse IDE which also needed Java to run. So I decide to reinstall the Java, but when I tried to uninstall the Java it shows the Error 1723 - There is a problem with this Windows Installer Package. So I have installed a new JDK in another location and set the PATH. Still I am not able to run the Swing application.
Can anybody help me on this?
How are you running your swing application?
If it's from the command line like java mySwingApp and you're getting java not found then your PATH isn't set properly. Make sure that the java/bin directory is on your PATH not just the top level directory. You can test your PATH by just typing java in a console window - it should print the java help page.
If you're not running from a terminal like above, then you may need to set a JAVA_HOME environment variable which points to your java installation folder. Here's a tutorial on setting JAVA_HOME
Setting JAVA_HOME
Hope this helps,
Will
This is close to jakob's answer, about trying to get your Java install setup correctly again, just with a little more detail.
I had a similar problem on my Windows 7 box where I was trying to uninstall Java and do a clean install of a newer version. Something got messed up and I would get the 1723 error message during the uninstall and attempted reinstall. Here's information about how I was able to fix the problem, and maybe this will help you:
Look at the log files for the uninstall/reinstall. On Windows 7 they can be found at c:\users\username\AppData\Local\Temp\
The java_install.logdidn't show any extra information, but I had several MSI##### log files that contained error messages about the failed uninstall. The message was: Error 1723.There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor. Action UninstallJRE, entry: MSIUninstallJRE, library: C:\Program Files\Java\jre6\bin\regutils.dll
There was indeed no regutils.dll file, and not even the bindirectory was there. So I copied over a regutils.dll file from another computer, ran the uninstaller, and it worked. Then the new clean install of Java also worked.
So take a look at your logfiles and hopefully that will give you more detailed information about the 1723 error.
This usally happens when you delete Java files manually.
If you try to uninstall Java and it fails, it generates a log file.
Should be in C:\Users[Username]\AppData\Local\Temp
Almost at the end the missing file(s) can be found.
Try to copy that file(s) from a working installation to your computer.
Then you should be able to uninstall your Java and install a new version.

Categories

Resources