Prof-MohamedAtef / android

read and evaluate
0 stars 0 forks source link

android google cloud end point module exception : appengineStart cannot be completed #3

Open Prof-MohamedAtef opened 5 years ago

Prof-MohamedAtef commented 5 years ago

After i added endpoints-framework-gradle-plugin. While i am trying to start my appengine in the google cloud. this error message stops the gradle from completeing its processes. Error:Execution failed for task ':Jokingbackend:appengineStart'.

com.google.cloud.tools.appengine.cloudsdk.internal.process.ProcessRunnerException: Timed out waiting for the success message: '.(Dev App Server is now running|INFO:oejs.Server:main: Started).'

This is my backend gradle files

// If you would like more information on the gradle-appengine-plugin please refer to the github page
// https://github.com/GoogleCloudPlatform/gradle-appengine-plugin

buildscript {
    repositories {
        jcenter()
        mavenCentral()
    }
    dependencies {
//        classpath 'com.google.appengine:gradle-appengine-plugin:1.9.28'

        // V2: Add the new App Engine and Endpoints Frameworks plugin dependencies
        classpath 'com.google.cloud.tools:endpoints-framework-gradle-plugin:1.0.2'
        classpath 'com.google.cloud.tools:appengine-gradle-plugin:1.3.3'
    }
}

repositories {
    jcenter();
}

apply plugin: 'java'
apply plugin: 'war'
//apply plugin: 'appengine'

apply plugin: 'com.google.cloud.tools.appengine'
apply plugin: 'com.google.cloud.tools.endpoints-framework-server'

sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7

dependencies {
//  appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.28'
  compile 'com.google.appengine:appengine-endpoints:1.9.28'
  compile 'com.google.appengine:appengine-endpoints-deps:1.9.28'
    // V2: Endpoints Framework v2 migratio
    compile 'com.google.endpoints:endpoints-framework:2.0.9'
    compile 'javax.inject:javax.inject:1'
    compile 'javax.servlet:servlet-api:2.5'
}

appengine {
    deploy {   // deploy configuration

        // The following is used for acceptance tests and
        // is not required for a migration.
        project = findProperty("appengine.deploy.project")
        version = findProperty("appengine.deploy.version")
        def promoteProp = findProperty("appengine.deploy.promote")
        if (promoteProp != null) {
            promote = new Boolean(promoteProp)
        }
    }
    appengine.run.port = 8888
    run {
        // Timeout after 60 seconds
        startSuccessTimeout = 60
    }
}

Please help as soon as possible, That will be appreciated . Thanks