What Went wrong :
Unable To Start The Deamon Process .
This Problem might be , Caused By the incorrect configuration of the daemon .
Need Answer To build my app
Related
Working on the react-native app with go-Lang, In the sentry plugin facing issue while generating the release APK file. But we can able generate debug APK through android studio.
Android studio error messages:
sentry reported an error: You do not have permission to perform this action. (http status: 403)
Process 'command 'node_modules/#sentry/cli/bin/sentry-cli'' finished with non-zero exit value 1
Task :app:bundleReleaseJsAndAssets_SentryUploadCleanUp SKIPPED
Skipping task ':app:bundleReleaseJsAndAssets_SentryUploadCleanUp' as task onlyIf is false.
:app:bundleReleaseJsAndAssets_SentryUploadCleanUp (Thread[Execution worker for ':' Thread 8,5,main]) completed. Took 0.0 secs.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets_SentryUpload'.
java.lang.NullPointerException (no error message)
I tried blow steps are tired
Followed https://docs.sentry.io/platforms/react-native/advanced-setup/
I removed the line cli.executable=node_modules/#sentry/cli/bin/sentry-cli in android/sentry.properties
Modified logLevel: "debug/release"
Verified with enableHermes true/false
Which is source stoping us, any guidelines will help to proceed further.
Please be aware to the name of the project in your sentry.io site.
I changed my project name from "react-native" to "my-project", and i got this error.
so I went to this path:
android/sentry.properties
and i changed the line 3
defaults.project=react-native
to this:
defaults.project=my-project
and the error is gone!
I am sure it will help.
When I am running react-native run-android it says :
FAILURE: Build failed with an exception.
* What went wrong:
Could not update time stamp for /home/userName/Desktop/hello-world/android/.gradle/4.10.2/gc.properties
Upon running --stacktrace, it shows :
* Exception is:
org.gradle.api.UncheckedIOException: Could not update time stamp for /home/userName/Desktop/hello-world/android/.gradle/4.10.2/gc.properties.
What can be the possible reason of this? I searched it a lot but failed to find a solution.
Solved. I deleted gc.properties and then gave all permissions to my react-native project. Main problem was related to permissions.
I am trying to build my android project on Jenkins 2.0 server on Ubuntu machine.
I am running the following commands for that purpose:-
./gradlew clean (this is working fine)
./gradlew build (this is failing random number of test cases)
However I also install Jenkins 2.0 on my Windows 7 machine and run the same commands as above, and it was passing all test cases every time. I am not understanding what is wrong with that.
I did lot of debugging but could not find any solution, please help me to get rid out of this thing...!
This is my 34th build log on Jenkins
testPreCondition FAILED
java.lang.NullPointerException at ConfigurationFragmentTest.java:36
handleBackButtonPressing FAILED
java.lang.NullPointerException at ConfigurationFragmentTest.java:36
48 tests completed, 2 failed
:app:testDebugUnitTest FAILED
This is my 35th build log on Jenkins without making any code changes
> handleBackButtonPressing FAILED
java.lang.NullPointerException at ConfigurationFragmentTest.java:36
> testPreCondition FAILED
java.lang.NullPointerException at ConfigurationFragmentTest.java:36
> testPreconditions FAILED
java.lang.NullPointerException at UpdateTabFragmentTest.java:30
> testPreconditions FAILED
java.lang.NullPointerException at ServiceTabFragmentTest.java:29
> testPreConditionIsNotNull FAILED
java.lang.NullPointerException at HomeActivityTest.java:63
48 tests completed, 5 failed
:app:testDebugUnitTest FAILED
You should check the Jenkins console output for something like
"WARNING: No manifest file found " in the console output.
Those NPEs are typical for missing resources.
The most common source for failing robolectric builds on different environmnets is probably robolectric not beeing able to load any resources.
Since robolectric needs to know where your Android Manifest is, you may have to provide a extra robolectric.properties for the build
http://robolectric.org/configuring/
I am try to build android apps but while creating apps my build failed with following errors.
D:\ibm\AnywhereWorkManager\build.xml:87: The following error occurred
while executing this line:
D:\ibm\AnywhereWorkManager\anywhere-apps-builder.xml:720: The
following error occurred while executing this line:
D:\ibm\AnywhereWorkManager\anywhere-apps-builder.xml:716: Failed
building application:
com.worklight.builder.exception.WorklightBuildException:
java.io.IOException: Unable to delete directory
D:\ibm\AnywhereWorkManager\apps\WorkApproval\android\native\assets\www\default\dojo\cldr\nls\zh-hans-mo.
at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
I know this answer might seem obvious, but if you have any of the files mentioned in the failure (D:\ibm\AnywhereWorkManager\apps\WorkApproval\android\native\assets\www\default\dojo\cldr\nls\zh-hans-mo)
open ( commandline, eclipse, other editor), this will cause the issue.
When I run robotium (5.2.1) tests from android studio 1.0 RC 2, I get this following error ==>
:app:shrinkDebugTestMultiDexComponents FAILED
Error:Execution failed for task ':app:shrinkDebugTestMultiDexComponents'.> java.io.IOException: The output jar is empty. Did you specify the proper '-keep' options?
I have no problem to run the application "in normal mode".
Do you know where is my problem ?
Thx in advance
EDIT
According to Jared Burrows's answer I can pass task shrinkDebugTestMultiDexComponents but now I have this problem
:app:packageAllDebugTestClassesForMultiDex FAILED
Error:Execution failed for task ':app:packageAllDebugTestClassesForMultiDex'.> java.util.zip.ZipException: duplicate entry: android/support/multidex/BuildConfig.class