@duclt wrote:
when i run this command ionic cordova run android --device or ionic cordova run android --prod --release
this is the firts time i use ionic plz help me . thanks for readingBlockquote
Running app-scripts build: --platform android --target cordova
[11:04:39] build dev started …
[11:04:39] clean started …
[11:04:39] clean finished in 36 ms
[11:04:39] copy started …
[11:04:39] deeplinks started …
[11:04:39] deeplinks finished in 24 ms
[11:04:39] transpile started …
[11:04:47] transpile finished in 8.00 s
[11:04:47] preprocess started …
[11:04:47] preprocess finished in 1 ms
[11:04:47] webpack started …
[11:04:47] copy finished in 8.79 s
[11:04:54] webpack finished in 7.48 s
[11:04:54] sass started …
Withoutfrom
option PostCSS could generate wrong source map and will not find Browserslist config. Se
t it to CSS file path or toundefined
to prevent this warning.
[11:04:56] sass finished in 1.96 s
[11:04:56] postprocess started …
[11:04:56] postprocess finished in 8 ms
[11:04:56] lint started …
[11:04:56] build dev finished in 17.65 s
cordova run android --device
[11:04:59] lint finished in 2.97 sYou have been opted out of telemetry. To change this, run: cordova telemetry on.
Android Studio project detectedANDROID_HOME=D:\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_144
studio
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for de
tailsFAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project ‘android’.Could not resolve all files for configuration ‘:classpath’.
Could not resolve com.android.tools.build:gradle:3.0.0.
Required by:
project :Could not resolve com.android.tools.build:gradle:3.0.0.
Could not get resource ‘https://maven.google.com/com/android/tools/build/gradle/3.0.0/gradle
-3.0.0.pom’.
Could not GET ‘https://maven.google.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0
.pom’.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.pro
vider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
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 18s
(node:10184) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cm
d: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project ‘android’.Could not resolve all files for configuration ‘:classpath’.
Could not resolve com.android.tools.build:gradle:3.0.0.
Required by:
project :
Could not resolve com.android.tools.build:gradle:3.0.0.
Could not get resource ‘https://maven.google.com/com/android/tools/build/gradle/3.0.0/gradle
-3.0.0.pom’.
Could not GET ‘https://maven.google.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0
.pom’.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.pro
vider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
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 18s
(node:10184) [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?PS C:\Users\duc.lt\Desktop\Learn\LearnIonic\learn> ionic cordova build android --prod --release
Running app-scripts build: --prod --platform android --target cordova
[11:11:55] build prod started …
[11:11:55] clean started …
[11:11:55] clean finished in 6 ms
[11:11:55] copy started …
[11:11:55] deeplinks started …
[11:11:55] deeplinks finished in 63 ms
[11:11:55] ngc started …
[11:12:03] ngc finished in 7.13 s
[11:12:03] preprocess started …
[11:12:03] preprocess finished in less than 1 ms
[11:12:03] webpack started …
[11:12:03] copy finished in 7.67 s
[11:12:27] webpack finished in 24.24 s
[11:12:27] uglify started …
[11:12:27] sass started …
Withoutfrom
option PostCSS could generate wrong source map and will not find Browserslist config. Se
t it to CSS file path or toundefined
to prevent this warning.
[11:12:28] sass finished in 912 ms
[11:12:28] cleancss started …
[11:12:29] cleancss finished in 1.54 s
[11:12:40] uglify finished in 13.16 s
[11:12:40] postprocess started …
[11:12:40] postprocess finished in 14 ms
[11:12:40] lint started …
[11:12:40] build prod finished in 44.75 scordova build android --release
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Android Studio project detectedANDROID_HOME=D:\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_144
studio
Subproject Path: CordovaLib
Subproject Path: app
[11:12:43] lint finished in 3.25 sFAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project ‘android’.Could not resolve all files for configuration ‘:classpath’.
Could not resolve com.android.tools.build:gradle:3.0.0.
Required by:
project :
Could not resolve com.android.tools.build:gradle:3.0.0.
Could not get resource 'https://maven.google.com/com/android/tools/build/gradle/3.0.0/gradle
PS C:\Users\duc.lt\Desktop\Learn\LearnIonic\learn> ionic cordova build android --prod --release
Running app-scripts build: --prod --platform android --target cordova
[11:13:21] build prod started …
[11:13:21] clean started …
[11:13:21] clean finished in 7 ms
[11:13:21] copy started …
[11:13:22] deeplinks started …
[11:13:22] deeplinks finished in 25 ms
[11:13:22] ngc started …
[11:13:28] ngc finished in 6.55 s
[11:13:28] preprocess started …
[11:13:28] preprocess finished in 3 ms
[11:13:28] webpack started …
[11:13:29] copy finished in 7.11 s
[11:13:52] webpack finished in 23.90 s
[11:13:52] uglify started …
[11:13:52] sass started …
Withoutfrom
option PostCSS could generate wrong source map and will not find Browserslist config. Se
t it to CSS file path or toundefined
to prevent this warning.
[11:13:53] sass finished in 1.17 s
[11:13:53] cleancss started …
[11:13:55] cleancss finished in 1.59 s
[11:14:05] uglify finished in 12.63 s
[11:14:05] postprocess started …
[11:14:05] postprocess finished in 12 ms
[11:14:05] lint started …
[11:14:05] build prod finished in 43.26 s
cordova build android --releaseYou have been opted out of telemetry. To change this, run: cordova telemetry on.
Android Studio project detectedANDROID_HOME=D:\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_144
studio
Subproject Path: CordovaLib
Subproject Path: app
[11:14:08] lint finished in 3.15 sFAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project ‘android’.Could not resolve all files for configuration ‘:classpath’.
Could not resolve com.android.tools.build:gradle:3.0.0.
Required by:
project :
Could not resolve com.android.tools.build:gradle:3.0.0.
Could not get resource ‘https://maven.google.com/com/android/tools/build/gradle/3.0.0/gradle
-3.0.0.pom’.
Could not GET ‘https://maven.google.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0
.pom’.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.pro
vider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
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 4s
(node:12008) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cm
d: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project ‘android’.Could not resolve all files for configuration ‘:classpath’.
Could not resolve com.android.tools.build:gradle:3.0.0.
Required by:
project :
Could not resolve com.android.tools.build:gradle:3.0.0.
Could not get resource ‘https://maven.google.com/com/android/tools/build/gradle/3.0.0/gradle
-3.0.0.pom’.
Could not GET ‘https://maven.google.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0
.pom’.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.pro
vider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
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 4s
(node:12008) [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.
Posts: 1
Participants: 1