You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/06/26 13:13:44 UTC

[GitHub] [cordova] FreddyCrugger opened a new issue #131: android:allowBackup="false" not working in cordova-lib@9.0.1

FreddyCrugger opened a new issue #131: android:allowBackup="false" not working in cordova-lib@9.0.1
URL: https://github.com/apache/cordova/issues/131
 
 
   Hello,
   
   In my config.xml I added:
   
   ```
       <platform name="android">
           <edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application">
               <application android:allowBackup="false" />
           </edit-config>
           <allow-intent href="market:*" />
       </platform>
   ```
   
   All I am trying to do is not getting the OS Android to backup the localstorage when the app is uninstalled. This used to work in the previous cordova versions.
   
   Upon building the application I am getting this error:
   
   ```
   BUILD FAILED in 4s
   Exception in thread "ForkJoinPool.commonPool-worker-15" java.lang.IllegalStateException: AAPT Process manager cannot be shut down while daemons are in use
           at com.android.builder.internal.aapt.v2.Aapt2DaemonManager.shutdown(Aapt2DaemonManager.kt:96)
           at com.android.build.gradle.internal.res.namespaced.RegisteredAaptService.shutdown(Aapt2DaemonManagerService.kt:61)
           at com.android.build.gradle.internal.workeractions.WorkerActionServiceRegistry$shutdownAllRegisteredServices$1$1.run(WorkerActionServiceRegistry.kt:96)
           at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
           at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
           at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
           at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
           at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
   C:\laragon\www\app\src-cordova\platforms\android\gradlew: Command failed with exit code 1 Error output:
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Execution failed for task ':app:mergeReleaseResources'.
   > java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
     C:\laragon\www\app\src-cordova\platforms\android\app\src\main\res\xml\config.xml:57: error: unbound prefix.
   
   
   * 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 4s
   Exception in thread "ForkJoinPool.commonPool-worker-15" java.lang.IllegalStateException: AAPT Process manager cannot be shut down while daemons are in use
           at com.android.builder.internal.aapt.v2.Aapt2DaemonManager.shutdown(Aapt2DaemonManager.kt:96)
           at com.android.build.gradle.internal.res.namespaced.RegisteredAaptService.shutdown(Aapt2DaemonManagerService.kt:61)
           at com.android.build.gradle.internal.workeractions.WorkerActionServiceRegistry$shutdownAllRegisteredServices$1$1.run(WorkerActionServiceRegistry.kt:96)
           at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
           at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
           at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
           at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
           at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
   
    app:spawn Command "cordova" failed with exit code: 1 +0ms
    app:cordova-conf ⚠️  [FAIL] Cordova CLI has failed +0ms
   ```
   
   Thank you.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org