Hi, I have a problem with the Diagnostic plugin, i can’t even use it.
When i do a ionic cordova run android, I have this in the terminal.
I’ve just installed it, I did not used it in my code.
c:\Dev\Ionic\newApp (master -> origin)
λ ionic cordova run android
Running app-scripts build: --platform android --target cordova
[14:41:56] build dev started ...
[14:41:56] clean started ...
[14:41:56] clean finished in 16 ms
[14:41:56] copy started ...
[14:41:56] deeplinks started ...
[14:41:56] deeplinks finished in 57 ms
[14:41:56] transpile started ...
[14:41:59] transpile finished in 3.14 s
[14:41:59] preprocess started ...
[14:41:59] preprocess finished in less than 1 ms
[14:41:59] webpack started ...
[14:42:00] copy finished in 3.38 s
[14:42:05] webpack finished in 5.53 s
[14:42:05] sass started ...
Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
[14:42:06] sass finished in 883 ms
[14:42:06] postprocess started ...
[14:42:06] postprocess finished in 16 ms
[14:42:06] lint started ...
[14:42:06] build dev finished in 9.81 s
> cordova run android
Android Studio project detected
ANDROID_HOME=C:\Users\Paul\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\java\jdk1.8.0_161
studio
Subproject Path: CordovaLib
Subproject Path: app
[14:42:09] tslint: c:/Dev/Ionic/newApp/src/pages/new-lieu/new-lieu.ts, line: 20
Property 'vibration' is declared but its value is never read.
L19: public geolocation: Geolocation,
L20: private vibration: Vibration,
L21: private locationAccuracy: LocationAccuracy,
[14:42:09] tslint: c:/Dev/Ionic/newApp/src/pages/new-lieu/new-lieu.ts, line: 21
Property 'locationAccuracy' is declared but its value is never read.
L20: private vibration: Vibration,
L21: private locationAccuracy: LocationAccuracy,
L22: ) {
[14:42:09] tslint: c:/Dev/Ionic/newApp/src/pages/lieu-edit/lieu-edit.ts, line: 5
All imports are unused.
L4: import {LieuxProvider} from "../../providers/lieux/lieux";
L5: import {DetailsLieuPage} from "../details-lieu/details-lieu";
[14:42:09] lint finished in 2.99 s
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_6bakg6uzu4oadtmertfg2m0ho.run(C:\Dev\Ionic\newApp\platforms\android\app\build.gradle:144)
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugRenderscript
UP-TO-DATE
:CordovaLib:checkDebugManifest UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:prepareLintJar UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:platformAttrExtractor UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:javaPreCompileDebug UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
:CordovaLib:processDebugJavaRes NO-SOURCE
:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
UP-TO-DATE
:app:preBuild UP-TO-DATE
:app:preDebugBuild
:app:compileDebugAidl
:CordovaLib:packageDebugRenderscript NO-SOURCE
:app:compileDebugRenderscript UP-TO-DATE
:app:checkDebugManifest UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:prepareLintJar
UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources
UP-TO-DATE
:app:mergeDebugResources
:app:createDebugCompatibleScreenManifests UP-TO-DATE
:app:processDebugManifest
:app:splitsDiscoveryTaskDebug UP-TO-DATE
:app:processDebugResources
:app:generateDebugSources
:app:javaPreCompileDebug
:app:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:app:compileDebugNdk NO-SOURCE
:app:compileDebugSources
:CordovaLib:mergeDebugShaders
UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets
UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:app:mergeDebugShaders UP-TO-DATE
:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets
:app:extractTryWithResourcesSupportJarDebug UP-TO-DATE
:app:transformClassesWithStackFramesFixerForDebug
:app:transformClassesWithDesugarForDebug
:app:transformClassesWithDexBuilderForDebug
:app:transformDexArchiveWithExternalLibsDexMergerForDebug
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
* 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 23s
38 actionable tasks: 12 executed, 26 up-to-date
(node:2380) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
* 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 23s
at ChildProcess.whenDone (c:\Dev\Ionic\newApp\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
(node:2380) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2380) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[OK] Your app has been deployed.
Did you know you can live-reload changes from your app with --livereload?
I require your assistance
Thanks
Paul