2017-08-15 1 views
0

Ich aktualisierte reactive-native auf die neueste Version (0.47 .1) und initialisiert dann ein neues reaktives natives Projekt, kann es aber überhaupt nicht ausführen. Es gibt ein SSL-Problem mit okhttp3, das ich nicht einzeln installiert habe. Ich fügte das Zertifikat in der cacerts Datei hinzu, die in diesem Ordner vorhanden ist: C:\Program Files\Java\jre7\lib\security; aber immer noch ein Problem.Reactive native Version 0.47.1 Build fehlgeschlagen Fehler: com.facebook.react: react-native: 0.47.1 Konnte nicht aufgelöst werden com.squareup.okhttp3: okhttp: 3.6.0

Dies ist der Stack-Trace:

FAILURE: Build failed with an exception. 

    * What went wrong: 
    A problem occurred configuring project ':app'. 
    > Could not resolve all dependencies for configuration ':app:_debugCompile'. 
    > Could not resolve com.squareup.okhttp3:okhttp:3.6.0. 
     Required by: 
      Limo:app:unspecified > com.facebook.react:react-native:0.47.1 
     > Could not resolve com.squareup.okhttp3:okhttp:3.6.0. 
      > Could not get resource 'https://repo1.maven.org/maven2/com/squareup/okhttp3/okhttp/3.6.0/okhttp-3.6.0.pom'. 
       > Could not GET 'https://repo1.maven.org/maven2/com/squareup/okhttp3/okhttp/3.6.0/okhttp-3.6.0.pom'. 
       > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
    > Could not resolve com.squareup.okhttp3:okhttp-urlconnection:3.6.0. 
     Required by: 
      Limo:app:unspecified > com.facebook.react:react-native:0.47.1 
     > Could not resolve com.squareup.okhttp3:okhttp-urlconnection:3.6.0. 
      > Could not get resource 'https://repo1.maven.org/maven2/com/squareup/okhttp3/okhttp-urlconnection/3.6.0/okhttp-urlconnection-3.6.0.pom'. 
       > Could not GET 'https://repo1.maven.org/maven2/com/squareup/okhttp3/okhttp-urlconnection/3.6.0/okhttp-urlconnection-3.6.0.pom'. 
       > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
    > Could not resolve com.squareup.okio:okio:1.13.0. 
     Required by: 
      Limo:app:unspecified > com.facebook.react:react-native:0.47.1 
     > Could not resolve com.squareup.okio:okio:1.13.0. 
      > Could not get resource 'https://repo1.maven.org/maven2/com/squareup/okio/okio/1.13.0/okio-1.13.0.pom'. 
       > Could not GET 'https://repo1.maven.org/maven2/com/squareup/okio/okio/1.13.0/okio-1.13.0.pom'. 
       > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
    > Could not resolve com.squareup.okhttp3:okhttp:3.6.0. 
     Required by: 
      Limo:app:unspecified > com.facebook.react:react-native:0.47.1 > com.facebook.fresco:imagepipeline-okhttp3:1.0.1 
     > Could not resolve com.squareup.okhttp3:okhttp:3.6.0. 
      > Could not get resource 'https://repo1.maven.org/maven2/com/squareup/okhttp3/okhttp/3.6.0/okhttp-3.6.0.pom'. 
       > Could not GET 'https://repo1.maven.org/maven2/com/squareup/okhttp3/okhttp/3.6.0/okhttp-3.6.0.pom'. 
       > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 

I jre7, Android Studio 1.5 und gradle 1.5.0 verwenden. Gibt es Kompatibilitätsprobleme?

Danke

Antwort

0

Dumme Frage! Es scheint, dass JVM die Datei cacerts nicht korrekt neu lädt, indem nur adb neu gestartet wird, obwohl sie nach dem Neustart des adb in die Liste der Zertifikate aufgenommen wurde. Zum Entfernen des SSL-Fehlers ist jedoch ein Systemneustart erforderlich.

Verwandte Themen