[Q] APKSigner sign error - General Questions and Answers

I wanted to sign (using apksigner 1.1) my recently compiled .apk, but I have encountered this error
Signing - 1.apk
Error: opening registry key 'Software\JavaSoft\Java Runtime Environment'
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.
I'm running win 7 x64, jre 1,7 and jdk 1.7; jre and jdk variables added to PATH.
I had no problems with recompiling and compiling my .apk using APKTool.
Does anyone had an idea what's wrong?
Thanks!

Related

Your version is: /bin/bash: javac: command not found. after downgrading from 1.7

Your version is: /bin/bash: javac: command not found. after downgrading from 1.7 to 1.6 Cygwin
I originally had java 1.7 and it told me i needed 1.6 so i completely
uninstalled java and deleted the java folder in my program files
folder and installed java from scratch.
as you can see when I run the java -version command in Cygwin I can
see that java is installed but when I go to compile now I get this
error
EDIT
The issue has been resolved after reading faq several times over on the java website

[Q] cannot run MyFirstApp on windows 7 with adb and AVD

It seems it is not an easy thing to start android development. I followed the official instruction and tried to run the MyFirstApp example from developer.android.com on my Windows 7 64bit machine with AVD. But after 2 days effort, I am still cannot make it work for me in Eclipse and in adb command line.
The best I reached in command line approach is the following -- the second block with italic words shows the error I got:
Code:
E:\Workspace\MyFirstApp>ls bin
AndroidManifest.xml build.prop
AndroidManifest.xml.d classes
MyFirstApp-debug-unaligned.apk classes.dex
MyFirstApp-debug-unaligned.apk.d classes.dex.d
MyFirstApp-debug.apk dexedLibs
MyFirstApp.ap_ proguard.txt
MyFirstApp.ap_.d res
[I][B]E:\Workspace\MyFirstApp>adb install bin\MyFirstApp-debug.apk
failed to copy 'bin\MyFirstApp-debug.apk' to '/data/local/tmp/MyFirstApp-debug.a
pk': No such file or directory
rm failed for /data/local/tmp/MyFirstApp-debug.apk, No such file or directory[/B][/I]
I hope somebody can help me about these:
1. I am in Windows with AVD, why adb want to find /data/local/tmp, which is linux style location?
2. where does the adb try to copy the apk file to? My SDK is installed under "C:\Users\myname\AppData\Local\Android\android-sdk". There is no space in the address path. The source apk file is ready and should not be the cause of that error, I think.
3. Any configuration of the installed SDK needs to be modified in Windows machine? I think the SDK manager should be able to figure out what the machine is and download/install appropriate components for the user. Is that right?
I have similar or the same issue by using Eclipse.
thanks,

Run Oracle's Arm Jdk On Phone

Hi,
I would like to run Oracle's Jre for Arm on my Samsung I5500 with Froyo 2.2. The phone is rooted. I have unziped and copied files into /data
When I try to invoke java binary (or any other from bin directory), i get this:
/data/jre7soft/bin # ./java
ash: ./java: not found
"soft" is short from Soft Float ABI, but I was also trying with Hard Float ABI (i couldn't find which one to use with my cpu), every time the same result. The message "not found" is strange, the files of course exists in the directory, they have executable flag set.
Could anyone help me, pls?

[Q] brunch command resets my java version.

I am trying to build CM12 from sources. Since it requires Java 7, I used update alternatives to switch from using Java 8 to Java 7.
After I use the 'brunch falcon' command, java somehow resets to Java 8 for that instance of the terminal and the build fails. Is there any way to stop that from happening?
SaurabhSandav said:
I am trying to build CM12 from sources. Since it requires Java 7, I used update alternatives to switch from using Java 8 to Java 7.
After I use the 'brunch falcon' command, java somehow resets to Java 8 for that instance of the terminal and the build fails. Is there any way to stop that from happening?
Click to expand...
Click to collapse
A quick solution would be to uninstall java 8 and only use java 7. Otherwise you'll have to ensure the system path to the java executable, points to Java 7

Noob developer help!!! Pwn Phone/Kali phone Nexus 5

Hello all,
I am the noobest person when it comes to Android development, yet here I am trying to build my own Android for the Pwn Phone.
I followed the XDA guide here: http://forum.xda-developers.com/goo...opment/guide-convert-phone-pwn-phone-t2852293
As well as the official steps at Pwnie Express: https://www.pwnieexpress.com/build-pwn-phone
And after hours of reading and setting everything up according to all of the steps in those guides, I'm running into a Java error during the build portion. The two important specs are:
Linux Elementary (Ubuntu 16, Loki)
OpenJDK 6/7/8
Oracle Java 7/8
The error I'm getting is:
You asked for an OpenJDK 7 build but you version is
java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java Hotspot(TM) 64-bit Server VM (build 24.80-b11, mixed mode).
I've downloaded and isntalled OpenJDK 6, 7 and 8 as well as Oracle Java 7 and 8 and I changed the defaults by running:
sudo update-alternatives --config java
sudo update-alternatives --config javac
I've changed to every version of Java listed there, removed them all and installed them all again. Either I get the above error message or I get "You are attempting to build with the incorrect version of Java...etc"
I get the error around 10 minutes after I run the "brunch hammerhead" command.
I'm not sure which version of Java I need as I believe this 1.7.0 IS Java 7. Whenever I switch to 8 it says the version is 1.8 and the same thing with 6 (1.6). I've downloaded and installed every program listed in the two guides to set up the environment properly, but somehow keep running into this problem. Would somebody out there be able to point me in the right direction? Every other command has run without a problem so I know Java is the only thing keeping me from building this ROM. This is the first ROM I've tried to compile, though I've rooted and installed many custom ROMs for previous phones. This is the first time I've been this involved in getting a ROM and any help would be appreciated.
bobisguilty said:
Hello all,
I am the noobest person when it comes to Android development, yet here I am trying to build my own Android for the Pwn Phone.
I followed the XDA guide here: http://forum.xda-developers.com/goo...opment/guide-convert-phone-pwn-phone-t2852293
As well as the official steps at Pwnie Express: https://www.pwnieexpress.com/build-pwn-phone
And after hours of reading and setting everything up according to all of the steps in those guides, I'm running into a Java error during the build portion. The two important specs are:
Linux Elementary (Ubuntu 16, Loki)
OpenJDK 6/7/8
Oracle Java 7/8
The error I'm getting is:
You asked for an OpenJDK 7 build but you version is
java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java Hotspot(TM) 64-bit Server VM (build 24.80-b11, mixed mode).
I've downloaded and isntalled OpenJDK 6, 7 and 8 as well as Oracle Java 7 and 8 and I changed the defaults by running:
sudo update-alternatives --config java
sudo update-alternatives --config javac
I've changed to every version of Java listed there, removed them all and installed them all again. Either I get the above error message or I get "You are attempting to build with the incorrect version of Java...etc"
I get the error around 10 minutes after I run the "brunch hammerhead" command.
I'm not sure which version of Java I need as I believe this 1.7.0 IS Java 7. Whenever I switch to 8 it says the version is 1.8 and the same thing with 6 (1.6). I've downloaded and installed every program listed in the two guides to set up the environment properly, but somehow keep running into this problem. Would somebody out there be able to point me in the right direction? Every other command has run without a problem so I know Java is the only thing keeping me from building this ROM. This is the first ROM I've tried to compile, though I've rooted and installed many custom ROMs for previous phones. This is the first time I've been this involved in getting a ROM and any help would be appreciated.
Click to expand...
Click to collapse
hi.
any luck building the rom

Categories

Resources