Homework Help for Computer Science

2,815 results

Today, computing is an integral and a very visible aspect of our everyday life. Learn the essentials of the design and development of computing sofware and hardware

For unlimited access to Homework Help, a Homework+ subscription is required.

Avatar image
walegbena asked for the first time
Avatar image
hshshahqiiiyyyippoo asked for the first time
Avatar image
thebehaliig asked for the first time
Avatar image
ponnarasu893 asked for the first time
Avatar image
borthdlookj asked for the first time
Avatar image
vasukimurugesan9487 asked for the first time
Avatar image
thereasontijev asked for the first time
Avatar image
ismatyasmin0786 asked for the first time
Avatar image
zainkhan asked for the first time
Avatar image
aaliyafahmi22 answered this question
in Computer Science·
21 Aug 2023

Using Android Studio Flamingo version 22.1 patch and Flutter ver 3.7.10

Getting this these error msgs- I listed my flutter code and pubspec below the error messages.

Exception in thread "main" javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
 at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131)
 at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:371)
 at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:314)
 at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:309)
 at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(CertificateMessage.java:1357)
 at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(CertificateMessage.java:1232)
 at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(CertificateMessage.java:1175)
 at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:396)
 at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:480)
 at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:458)
 at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:201)
 at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:172)
 at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1510)
 at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1425)
 at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:455)
 at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:426)
 at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:580)
 at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:187)
 at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1665)
 at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
 at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
 at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
 at org.gradle.wrapper.Download.download(Download.java:44)
 at org.gradle.wrapper.Install$1.call(Install.java:61)
 at org.gradle.wrapper.Install$1.call(Install.java:48)
 at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
 at org.gradle.wrapper.Install.createDist(Install.java:48)
 at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
 at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
 at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:439)
 at java.base/sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:306)
 at java.base/sun.security.validator.Validator.validate(Validator.java:264)
 at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231)
 at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:132)
 at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(CertificateMessage.java:1341)
 ... 24 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
 at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
 at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
 at java.base/java.security.cert.CertPathBuilder.build(CertPathBuilder.java:297)
 at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:434)
 ... 29 more
Exception: Gradle task assembleDebug failed with exit code 1

My Flutter code 

import 'package:flutter/material.dart';

void main() {
runApp(MyApp());
}

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
backgroundColor: Colors.teal,
body: SafeArea(
child: Column(
children: <Widget>[
CircleAvatar(
radius: 50.0,
backgroundImage: AssetImage('images/david.jpg'),
),
Text(
'David Lee',
style: TextStyle(
fontFamily: 'Pacifico',
fontSize: 40.0,
fontWeight: FontWeight.bold
),
),
],
)),
)
);
}
}


My Pubspec listed below name: mi_card
description: A new Flutter application.
version: 1.0.0+1
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.2
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
assets:
- images/david.jpg
fonts:
- family: Pacifico
fonts:
- asset: fonts/Pacifico-Regular.ttf
Avatar image
banriehsca asked for the first time

Start filling in the gaps now
Log in