2017-03-14 23 views
1

我正在將React Native集成到Android項目中,我遇到了這個gradle問題。Brownfield | Stetho | 「:com.facebook.stetho:stetho-okhttp:1.2.0'取決於一個或多個Android庫,但是是一個罐子」

「:com.facebook.stetho:stetho-okhttp:1.2.0' 依賴於一個或更多的Android庫卻是一個jar」

Module 'com.facebook.stetho:stetho-okhttp:1.2.0' depends on one or more Android Libraries but is a jar 
Module 'com.facebook.stetho:stetho-okhttp:1.2.0' depends on one or more Android Libraries but is a jar 

FAILED 
:uscs_core_mobile:buildInfoGeneratorE3PRODLogsDebug 

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':uscs_core_mobile:prepareE3PRODLogsDebugDependencies'. 
> Dependency Error. See console for details. 

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

BUILD FAILED 

注:以上就是我所看到的運行後--stacktrace

當我檢查我的應用程序時,我實際上並沒有看到stetho-okhttp:1.2.0而是我看到stetho:1.4.1

有沒有人經歷過這個或有想法?

回答

相關問題