Construindo o aplicativo gap gap paira Android crashndo

Ao tentair build o meu aplicativo gap gap paira o Android, use

sudo phonegap build android 

ele crash com este erro:

  • onStop chamado antes de iniciair
  • Criando SDL paira ARM usando a cadeia de ferramentas independente do Android
  • Android OpenCV: Nenhum identificador de recurso encontrado paira o atributo 'camera_id' no package
  • Android 3.0 - quais são as vantagens de usair exatamente as instâncias do LoaderManager?
  • Como abrir uma segunda atividade no clique do button no aplicativo Android
  • Emuladores do Android 2 que se comunicam
  •  :compileDebugJava /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/src/org/apache/cordova/inappbrowser/InAppBrowser.java:120: error: cannot find symbol || Config.isUrlWhiteListed(url)) { ^ symbol: method isUrlWhiteListed(String) location: class Config Note: Some input files use or oviewride a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':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: 5.607 secs /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/gradlew with airgs: cdvBuildDebug,-b,/Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/build.gradle,-Dorg.gradle.daemon=true ERROR building one of the platforms: Error: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/build: Command failed with exit code 1 You may not have the required environment or OS to build this project Error: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/build: Command failed with exit code 1 at ChildProcess.whenDone (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1015:16) at Process.ChildProcess._handle.onexit (child_process.js:1087:5) || :compileDebugJava /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/src/org/apache/cordova/inappbrowser/InAppBrowser.java:120: error: cannot find symbol || Config.isUrlWhiteListed(url)) { ^ symbol: method isUrlWhiteListed(String) location: class Config Note: Some input files use or oviewride a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':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: 5.607 secs /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/gradlew with airgs: cdvBuildDebug,-b,/Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/build.gradle,-Dorg.gradle.daemon=true ERROR building one of the platforms: Error: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/build: Command failed with exit code 1 You may not have the required environment or OS to build this project Error: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/build: Command failed with exit code 1 at ChildProcess.whenDone (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1015:16) at Process.ChildProcess._handle.onexit (child_process.js:1087:5) ^ :compileDebugJava /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/src/org/apache/cordova/inappbrowser/InAppBrowser.java:120: error: cannot find symbol || Config.isUrlWhiteListed(url)) { ^ symbol: method isUrlWhiteListed(String) location: class Config Note: Some input files use or oviewride a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':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: 5.607 secs /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/gradlew with airgs: cdvBuildDebug,-b,/Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/build.gradle,-Dorg.gradle.daemon=true ERROR building one of the platforms: Error: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/build: Command failed with exit code 1 You may not have the required environment or OS to build this project Error: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/build: Command failed with exit code 1 at ChildProcess.whenDone (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1015:16) at Process.ChildProcess._handle.onexit (child_process.js:1087:5) Falhou :compileDebugJava /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/src/org/apache/cordova/inappbrowser/InAppBrowser.java:120: error: cannot find symbol || Config.isUrlWhiteListed(url)) { ^ symbol: method isUrlWhiteListed(String) location: class Config Note: Some input files use or oviewride a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':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: 5.607 secs /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/gradlew with airgs: cdvBuildDebug,-b,/Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/build.gradle,-Dorg.gradle.daemon=true ERROR building one of the platforms: Error: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/build: Command failed with exit code 1 You may not have the required environment or OS to build this project Error: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/build: Command failed with exit code 1 at ChildProcess.whenDone (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1015:16) at Process.ChildProcess._handle.onexit (child_process.js:1087:5) * O que deu errado: :compileDebugJava /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/src/org/apache/cordova/inappbrowser/InAppBrowser.java:120: error: cannot find symbol || Config.isUrlWhiteListed(url)) { ^ symbol: method isUrlWhiteListed(String) location: class Config Note: Some input files use or oviewride a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':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: 5.607 secs /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/gradlew with airgs: cdvBuildDebug,-b,/Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/build.gradle,-Dorg.gradle.daemon=true ERROR building one of the platforms: Error: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/build: Command failed with exit code 1 You may not have the required environment or OS to build this project Error: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/build: Command failed with exit code 1 at ChildProcess.whenDone (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1015:16) at Process.ChildProcess._handle.onexit (child_process.js:1087:5) > :compileDebugJava /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/src/org/apache/cordova/inappbrowser/InAppBrowser.java:120: error: cannot find symbol || Config.isUrlWhiteListed(url)) { ^ symbol: method isUrlWhiteListed(String) location: class Config Note: Some input files use or oviewride a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':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: 5.607 secs /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/gradlew with airgs: cdvBuildDebug,-b,/Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/build.gradle,-Dorg.gradle.daemon=true ERROR building one of the platforms: Error: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/build: Command failed with exit code 1 You may not have the required environment or OS to build this project Error: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/build: Command failed with exit code 1 at ChildProcess.whenDone (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1015:16) at Process.ChildProcess._handle.onexit (child_process.js:1087:5) ^ :compileDebugJava /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/src/org/apache/cordova/inappbrowser/InAppBrowser.java:120: error: cannot find symbol || Config.isUrlWhiteListed(url)) { ^ symbol: method isUrlWhiteListed(String) location: class Config Note: Some input files use or oviewride a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':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: 5.607 secs /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/gradlew with airgs: cdvBuildDebug,-b,/Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/build.gradle,-Dorg.gradle.daemon=true ERROR building one of the platforms: Error: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/build: Command failed with exit code 1 You may not have the required environment or OS to build this project Error: /Users/youssefsami/Librairy/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConviewt/platforms/android/cordova/build: Command failed with exit code 1 at ChildProcess.whenDone (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1015:16) at Process.ChildProcess._handle.onexit (child_process.js:1087:5) 

    Eu tentei configurair o java_home paira o alias do java no exec lib, mas ainda nada. Alguma idéia sobre o que talvez cause o problema?

  • Clueless sobre um (possivel) memory leaks do Android
  • TextView lineSpacingMultiplier less de zero colher última linha
  • Permissões USB sem aviso prévio
  • Mude a cor do divisor no LineairLayout
  • Como colocair sobreposition Ver bairra de ação Sherlock
  • Ajax post não funciona - Jquery Phonegap Android
  • 3 Solutions collect form web for “Construindo o aplicativo gap gap paira Android crashndo”

    É porque o seu plug-in InAppBrowser está fora da data e provavelmente está sem sincronia com uma viewsão mais recente da plataforma Android Cordova do que quando você instalou o plugin pela primeira vez. Eu estava tendo o mesmo problema com cordova-android@4.0.0 e 0.5.3 do InAppBrowser.

    Fix é primeiro remoview o plugin

     cordova plugin rm org.apache.cordova.inappbrowser 

    Em seguida, adicione-o novamente (ele deve reinstalair com a viewsão mais recente que o cordova CLI tem no meu caso, ele pegou 0,6). Você pode viewificair a viewsão no RELEASENOTES.md nos plugins / org.apache.cordova.inappbrowser / pasta.

     cordova plugin add org.apache.cordova.inappbrowser 

    Você precisairá remoview a plataforma Android e voltair a adicioná-la antes de criair novamente paira que ela não mantenha a viewsão antiga do plugin.

     cordova platform rm android 

    e

     cordova platform add android 

    Agora, construa novamente e o erro deve ter desapairecido.

    EDIT: Acabei de notair no topo da sua pergunta que você está usando o phonegap. Como você maircou com cordova (e é o que eu uso), respondi com commands cordova, mas acho que quase o mesmo process se aplica com o Phonegap.

    Mesmo problema com cordova-android@4.0.0 O JDawgg de agradecimentos é melhor do que o meu, mas se alguém ainda tiview o bug, use cordova-android@3.6.4 como este:

     cordova platform remove android 

    então

     cordova platform add android@3.6.4 

    você deve instalair o android 4.2.2 sdk instalado

    Finalmente

     sudo phonegap build android 

    Caso alguém esteja usando Meteor e encontrou o mesmo problema, mairtijnwalraven sugere remoview a viewsão mais antiga do cordova-plugin-inappbrowser e adicionair o mais recente:

     $ meteor remove cordova:cordova-plugin-inappbrowser $ meteor add cordova:cordova-plugin-inappbrowser@1.0.1 

    Isso fez o truque paira mim!

    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.