Google Cloud End Point Error: Process exited before success message - android

I am facing this error when I run the appengineStart task.
print of the error
The error says: “com.google.cloud.tools.appengine.cloudsdk.internal.process.ProcessRunnerException: Process exited before success message”
I searched on Google, but wasn’t able to find a solution.
Here is the full error log:
10:33:08: Executing task 'appengineStart'...
Executing tasks: [appengineStart]
Configuration on demand is an incubating feature.
Gradle now uses separate output directories for each JVM language, but this
build assumes a single directory for all classes from a source set. This
behaviour has been deprecated and is scheduled to be removed in Gradle 5.0
:backend:compileJava UP-TO-DATE
:backend:processResources NO-SOURCE
:backend:classes UP-TO-DATE
:backend:endpointsDiscoveryDocs UP-TO-DATE
:backend:_zipDiscoveryDocs UP-TO-DATE
:backend:war UP-TO-DATE
:backend:explodeWar UP-TO-DATE
:backend:assemble UP-TO-DATE
:backend:appengineStart
Warning: Google App Engine Java 7 runtime is deprecated.
Warning: See https://cloud.google.com/appengine/docs/deprecations/java7
ago 23, 2018 10:33:24 AM java.util.prefs.WindowsPreferences <init>
ADVERT?NCIA: Could not open/create prefs root node Software\JavaSoft\Prefs
at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
ago 23, 2018 10:33:25 AM
com.google.appengine.tools.development.SystemPropertiesManager
setSystemProperties
INFORMA??ES: Overwriting system property key
'java.util.logging.config.file', value
'C:\Users\igor\AppData\Local\Google\Cloud SDK\google-cloud- `sdk\platform\google_appengine\google\appengine\tools\java\config\sdk\logging.properties' with value 'WEB-INF/logging.properties' from 'C:\Users\igor\ud-exercises\ud867\FinalProject\backend\build\exploded-backend\WEB-INF\appengine-web.xml'`
************************************************
Could not open the requested socket: Address already in use: bind
Try overriding --address and/or --port.
Exception in thread "wait-for-process-exit-and-output-handlers" com.google.cloud.tools.appengine.api.AppEngineException: Non zero exit: 2
at com.google.cloud.tools.appengine.cloudsdk.process.NonZeroExceptionExitListener.onExit(NonZeroExceptionExitListener.java:30)
at com.google.cloud.tools.appengine.cloudsdk.internal.process.DefaultProcessRunner.syncRun(DefaultProcessRunner.java:211)
at com.google.cloud.tools.appengine.cloudsdk.internal.process.DefaultProcessRunner.access$200(DefaultProcessRunner.java:38)
at com.google.cloud.tools.appengine.cloudsdk.internal.process.DefaultProcessRunner$3.run(DefaultProcessRunner.java:223)
:backend:appengineStart FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':backend:appengineStart'.
>
com.google.cloud.tools.appengine.cloudsdk.internal.process.ProcessRunnerException: Process exited before success message
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 16s
6 actionable tasks: 1 executed, 5 up-to-date
10:33:26: Task execution finished 'appengineStart'.

Could not open the requested socket: Address already in use: bind indicates that you either previously started a dev server and it didn't exit properly, or you have another process using the same port. You need to kill the offending process (or restart your computer, which has the same effect) or change the port on which your dev server runs. Essentially, add the following to your gradle file, changing the port as necessary:
appengine.run.port = 8888

Related

Problem with Gradle versions and Android Emulator

I'm new to using React and have been following along in a tutorial for a project to learn. Occasionally, I encounter an error that stops my progress, then I search the error, and I generally find some solution. But in this case, I am having a hell of a time. Part of the issue is that I am so new to developing software that I sometimes am unsure of how to implement someone's solution. And, in particular, this issue seems like it is not simply contained to a single project, which means that new projects I create with React are now also experiencing similar issues.
Here's the issue. When I use npm run android, I get the following output:
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1940 file(s) to forward-jetify. Using 4 workers...
info JS server already running.
info Launching emulator...
error Failed to launch emulator. Reason: Could not start emulator within 30 seconds..
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...
> Configure project :react-native-reanimated
> No AAR for react-native-reanimated found. Attempting to build from source.
> Native libs debug enabled: false
> Android gradle plugin: 4.2.2
> Gradle: 7.2
> building Reanimated2
> Task :app:generatePackageList FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings
10 actionable tasks: 3 executed, 7 up-to-date
FAILURE: Build failed with an exception.
* Where:
Script 'C:\\Users\\Astuertz\\Dev\\Values2\\node_modules#react-native-community\\cli-platform-android\\native_modules.gradle' line: 122
* What went wrong:
Execution failed for task ':app:generatePackageList'.
> argument type mismatch
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to
get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 8s
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
* Where:
Script 'C:\\Users\\Astuertz\\Dev\\Values2\\node_modules#react-native-community\\cli-platform-android\\native_modules.gradle' line: 122
* What went wrong:
Execution failed for task ':app:generatePackageList'.
> argument type mismatch
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to
get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 8s
at checkExecSyncError (node:child_process:828:11)
at execFileSync (node:child_process:866:15)
at runOnAllDevices (C:\Users\Astuertz\Dev\Values2\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
at async Command.handleAction (C:\Users\Astuertz\Dev\Values2\node_modules\react-native\node_modules\#react-native-community\cli\build\index.js:182:9)
Someone had said that Gradle version 7 is incompatible with the current version of React and that it needs to be downgrade to version 7. I tried changing the version in the wrapper file for the Android folder, as well as taking someone's suggestion to change it in the Android Studio "Project Structure." In either case, the error either persisted or merely gave me a different error. What is going on here?
I've been trying to get my apps to run and compile but am in over my head.

React Native: Install to virtual/physical device failed

I'm currently using React Native to code my final year project. I have an issue when build and install it to virtual/physical devices althought a month ago it worked fine. Can someone explain to me wwhat wrongs with my code or files? Does it get corrupted? Because I tried to created a blank new file I still get the same errors.
My error:
> Task :app:processDebugResources FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings
183 actionable tasks: 2 executed, 181 up-to-date
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
C:\Users\minht\SmartRoom\node_modules\react-native-image-crop-picker\android\build\intermediates\library_manifest\debug\AndroidManifest.xml:10:5-14:15: AAPT: error: unexpected element <queries> found in <manifest>.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 11s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Seems like you need upgrade Gradle from Android studio and then try if you can run your project from Android Studio.

Android gradle build fails suddenly on ':app:mergeDebugResources' with no error messages

My gradle build stopped working completely out of the blue. Minute earlier it worked fine. Didn't change anything in gradle config files; as a matter of fact I was only changing application style in XML.
Make, clean and run produce:
Execution failed for task ':app:mergeDebugResources'.
> -1
Running gradle with --stacktrace produces:
Executing task ':app:mergeDebugResources' (up-to-date check took 0.031 secs) due to:
Task ':app:mergeDebugResources' class path has changed from 35ff0c585719dc5a2e2e4d58900e722a to 01ad85243d44a7018a6f6b671ff7bf6b.
All input files are considered out-of-date for incremental task ':app:mergeDebugResources'.
Unable do incremental execution: full task run :app:mergeDebugResources FAILED :app:mergeDebugResources
(Thread[Task worker for ':',5,main]) completed.
Took 0.155 secs.
Removing build directory didn't help, as well as cache invalidation and restart. Any ideas?
Using Canary (3.0) with build tools version 26.0.0.
Update #1
Running with --info --debug hints:
could not find method google() for arguments [] on repository container.
However, removing google() from config yields:
Received result
Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: A problem occurred configuring root project '[project name]'.] from daemon DaemonInfo{pid=3686, address=[e01105f7-0954-4e44-b561-3ac18fc3194f port:35854, addresses:[/0:0:0:0:0:0:0:1%lo, /127.0.0.1]], idle=true, lastBusy=1499443736429, context=DefaultDaemonContext[uid=64f95479-4418-4e3d-948b-7481648b65df,javaHome=/usr/lib/jvm/java-8-openjdk-amd64,daemonRegistryDir=/home/iwoherka/.gradle/daemon,pid=3686,idleTimeout=10800000,daemonOpts=-Xmx1536m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]} (build should be done).
18:09:26.648 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: dispatching class org.gradle.launcher.daemon.protocol.Finished
18:09:26.649 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: connection stop
Well, it turned out that the problem was fonts in res directory instead of main which caused gradle to act very weird.

Can't run android from server

I have android sdk installed from homebrew in iMac and I need to run an ionic app. Locally it works fine. But when I ionic run android from file server i got this:
iMac-de-Iwwa:ClickNoticias hugo$ ionic run android
cordova-custom-config: Skipping auto-restore of config file backup(s)
Running command: "/Volumes/Sites/apps/Click Notícias/ClickNoticias/hooks/after_prepare/010_add_platform_class.js" "/Volumes/Sites/apps/Click Notícias/ClickNoticias"
add to body class: platform-android
cordova-custom-config: Applied custom config from config.xml to /Volumes/Sites/apps/Click Notícias/ClickNoticias/platforms/android/AndroidManifest.xml
ANDROID_HOME=/usr/local/Cellar/android-sdk/24.4.1_1
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home
Observed package id '..;..;..;var;lib;android-sdk;samples;android-19' in inconsistent location '/usr/local/Cellar/android-sdk/24.4.1_1/samples/android-19' (Expected '/usr/local/Cellar/android-sdk/24.4.1_1/../../../var/lib/android-sdk/samples/android-19')
Observed package id '..;..;..;var;lib;android-sdk;samples;android-20' in inconsistent location '/usr/local/Cellar/android-sdk/24.4.1_1/samples/android-20' (Expected '/usr/local/Cellar/android-sdk/24.4.1_1/../../../var/lib/android-sdk/samples/android-20')
Observed package id '..;..;..;var;lib;android-sdk;samples;android-21' in inconsistent location '/usr/local/Cellar/android-sdk/24.4.1_1/samples/android-21' (Expected '/usr/local/Cellar/android-sdk/24.4.1_1/../../../var/lib/android-sdk/samples/android-21')
Observed package id '..;..;..;var;lib;android-sdk;samples;android-22' in inconsistent location '/usr/local/Cellar/android-sdk/24.4.1_1/samples/android-22' (Expected '/usr/local/Cellar/android-sdk/24.4.1_1/../../../var/lib/android-sdk/samples/android-22')
Observed package id '..;..;..;var;lib;android-sdk;samples;android-23' in inconsistent location '/usr/local/Cellar/android-sdk/24.4.1_1/samples/android-23' (Expected '/usr/local/Cellar/android-sdk/24.4.1_1/../../../var/lib/android-sdk/samples/android-23')
Incremental java compilation is an incubating feature.
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles
FAILURE: Build failed with an exception.
* What went wrong:
java.io.IOException: Operation not supported
> Operation not supported
* 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.025 secs
Error: /Volumes/Sites/apps/Click Notícias/ClickNoticias/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
java.io.IOException: Operation not supported
> Operation not supported
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
I read the error and i've seen this:
Observed package id '..;..;..;var;lib;android-sdk;samples;android-19' in inconsistent location '/usr/local/Cellar/android-sdk/24.4.1_1/samples/android-19' (Expected '/usr/local/Cellar/android-sdk/24.4.1_1/../../../var/lib/android-sdk/samples/android-19')
I actually made a copy of android-sdk to /usr/var/lib/android-sdk just for testing. But it doesn't works.
Someone have any idea of how i can solve this?
I was having a similar problem before, and it essentially means that your Android Home directory wasn't set properly.

cant compile apk using Game Maker Studio

I just updated the build tools using android SDK manager.
Now I cant compile apk using game maker studio.
Here is the error output from the console.
I dont think i have changed anything except windows update. I have windows 10, 64 bit
Stats : GMA : Elapsed=6821.0873
Stats : GMA : sp=32,au=0,bk=3,pt=0,sc=11,sh=0,fo=4,tl=0,ob=41,ro=3,da=0,ex=1,ma=29,fm=0x49E50A39
cmd /c ""C:\Users\pc\AppData\Roaming\GameMaker-Studio\Android\runner\gradle\gradlew"" build -x assembleDebug
:com.mysite.myapp:preBuild UP-TO-DATE
:com.mysite.myapp:preReleaseBuild UP-TO-DATE
:com.mysite.myapp:checkReleaseManifest
:com.mysite.myapp:preDebugBuild UP-TO-DATE
:com.mysite.myapp:prepareComAndroidSupportMultidex101Library
:com.mysite.myapp:prepareComAndroidSupportSupportV42311Library
:com.mysite.myapp:prepareReleaseDependencies
:com.mysite.myapp:compileReleaseAidl
:com.mysite.myapp:compileReleaseRenderscript
:com.mysite.myapp:generateReleaseBuildConfig
:com.mysite.myapp:generateReleaseAssets UP-TO-DATE
:com.mysite.myapp:mergeReleaseAssets
:com.mysite.myapp:generateReleaseResValues
:com.mysite.myapp:generateReleaseResources
:com.mysite.myapp:mergeReleaseResources
:com.mysite.myapp:processArmeabi-v7aReleaseManifest
Warning: C:\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com.mysite.myapp\src\main\AndroidManifest.xml:28:3-182:17 Warning:
application#android:label was tagged at AndroidManifest.xml:28 to replace other declarations but no other declaration present
Warning: C:\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com.mysite.myapp\src\main\AndroidManifest.xml:29:5-35:16 Warning:
activity#com.mysite.myapp.RunnerActivity#android:label was tagged at AndroidManifest.xml:29 to replace other declarations but no other declaration present
C:\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com.mysite.myapp\src\main\AndroidManifest.xml:28:3-182:17 Warning:
application#android:label was tagged at AndroidManifest.xml:28 to replace other declarations but no other declaration present
C:\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com.mysite.myapp\src\main\AndroidManifest.xml:29:5-35:16 Warning:
activity#com.mysite.myapp.RunnerActivity#android:label was tagged at AndroidManifest.xml:29 to replace other declarations but no other declaration present
:com.mysite.myapp:processArmeabi-v7aReleaseResourcesC:\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com.mysite.myapp\build\intermediates\manifests\full\armeabi-v7a\release\AndroidManifest.xml:78:28-65 : No resource found that matches the given name (at 'value' with value '#integer/google_play_services_version').
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':com.mysite.myapp:processArmeabi-v7aReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'F:\Android\android-sdk\build-tools\23.0.1\aapt.exe'' finished with non-zero exit value 1
* 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: 12.612 secs
Create finished: 01:33:39
I set the buils tools version to the latest version.
In preferences I set the cache path to a shorter one
I also uninstalled an extension called "APPODEAL", i think this was causing problems too.
Now I managed to get apk compiled

Categories

Resources