i am trying make react-native application to .apk file. I have keystore file, but when i try
sudo ./gradlew bundleRelease
i got error message
"1 exception was raised by workers: java.lang.RuntimeException: java.lang.RuntimeException: Cannot start "jarsigner" process, please add it to the PATH"
How can i fix this problem?
This should be included within the bin folder of Java SDK.
If you don't have the SDK installed, download it and install it, e.g:
https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html
There is also a video on Youtube showing how to find it, see https://www.youtube.com/watch?v=Qtz88Vf0bdw
Related
I am trying to follow the terrier quick start guide but am facing an issue, I try to run the bin\terrier.bat on windows cmd but I get the following
"Error: Could not find or load main class
Caused by: java.lang.ClassNotFoundException:"
I am in the terrier directory which is in my downloads folder, I have java version 11, my system path environment variables are all set. According to the guide it should show me the terrier version and all the commands available. Here is a link to the quick start guide https://github.com/terrier-org/terrier-core/blob/5.x/doc/quickstart_experiments.md
I tried the the command line to run the SDK on Ubuntu 18.04. It worked perfectly. I want integrate the sdk into a web project on Intellij IDEA So I could run the SDK by API Calls. But I got the following error : log
From the agora documentation it said that: doc
Could someone explain why this error occurs? Thank you
i resolved the error, after generating the agora.node you must give permission 777 on the directory of the project is only that
I successfully solved this issue. Go to the directory that you are recording to. There will be a file called recording_sys.log. At the end of this log file (last but 1 line actually) it said failed to execute a binary file. The path of the binary file is also mentioned. Just add execute permission (chmod +x /path/to/binary) for this binary file and the issue will resolve.
Edit: The name of this binary file is AgoraCoreService
I'm trying to build and run a unity game on my android device. When doing so, I get an error that says:
CommandInvokationFailure: Gradle build failed.
C:/Program Files/Java/jdk-10.0.2\bin\java.exe -classpath "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.2.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=->Xmx2048m" "assembleRelease"
I checked the file path and everything seems to be there and intact. I have no idea what else would help to fix this error, so if you could help me that would be great. Thanks!
I got the following error when I opened my project in Android Studio:
Error:Execution failed for task ':app:prepareComAndroidSupportAnimatedVectorDrawable2531Library'.
Unable to unzip 'C:\Users\Dharmawan's\AppData\Local\Android\sdk\extras\android\m2repository\com\android\support\animated-vector-drawable\25.3.1\animated-vector-drawable-25.3.1.aar' to 'C:\Users\Dharmawan's.android\build-cache\13e16c0d483386c8c964b3557f261a501ceb749b\output' or find the cached output 'C:\Users\Dharmawan's.android\build-cache\13e16c0d483386c8c964b3557f261a501ceb749b\output' using the build cache at 'C:\Users\Dharmawan's.android\build-cache'
Unfortunately, executing Android Studio as administrator on Linux, you won't update the IDE.
In this case, I used the chmod +777 command, to resolve this problem, but the big problem will be the computer vulnerability.
The command is sudo chmod +777 -R /home/your_user/Android/ or the path where is located the program.
Studio cannot unzip the file due to folder's privileges. To solve it execute Studio with administrator privileges.
In linux terminal (usually in /usr/local/include/android-studio/bin) type:
sudo ./studio.sh
In windows execute Studio as "Administrator".
I'm using ionic and I run ionic build android. The following error appears.
:CordovaLib:compileDebugJava/Users/jasontanner/Documents/ion/fip/platforms/android/CordovaLib/src/org/apache/cordova/CordovaResourceApi.java:31: error: package org.apache.http.util does not exist
import org.apache.http.util.EncodingUtils;
^
/Users/jasontanner/Documents/ion/fip/platforms/android/CordovaLib/src/org/apache/cordova/CordovaResourceApi.java:430: error: cannot find symbol
byte[] data = base64 ? Base64.decode(dataPartAsString, Base64.DEFAULT) : EncodingUtils.getBytes(dataPartAsString, "UTF-8");
^
symbol: variable EncodingUtils
location: class CordovaResourceApi
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':CordovaLib:compileDebugJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.663 secs
/Users/jasontanner/documents/ion/fip/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /Users/jasontanner/documents/ion/fip/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/jasontanner/documents/ion/fip/platforms/android/build.gradle,-Dorg.gradle.daemon=true
I've adjusted the appropriate files to run on Android 22 SDK. Outside of that, I've made no other changes to the android code. Any help on how to fix this would be awesome. Thanks!
Try making sure you have updated all of your libraries (ionic, cordova and so on) by running npm update. If this doesn't work I would check you have the latest JDK installed.
Finally try removing then re-adding the android platform from your project with the following commands
ionic platform remove android
ionic platform add android
If your using a mac, you could also try running the build command as sudo eg sudo ionic build android. I have come accross this when the libraries (such as ionic and cordova) have been installed with sudo. You can see more at npm throws error without sudo. Look into the NVM option which is the best way to move forward.
Could not find any version that matches com.android.support:support-v4:24.1.1+.
Solved it through reinstall of the whole Android support repository in Android SDK. It may crash.