gradle - React Native example (UIExplorer) building issue -


solution

i've overcome issue helps @leocavalcante. problem when using gradlew word in command console, can run directly. because, when using gradlew, windows console run gradlew.bat!

don't try cygwin (linux) bash command sh ./gradle :exam... or sh gradle :exam.. or bash gradle :exam...

just use gradlew :examples:uiexplorer:android:app:installdebug


i couldn't build uiexplorer examples react-native official repo.

i use windows , cygwin64.

i've set both of sdk , ndk. cloned repo , gave npm install command in root directory of react-native has been cloned now. added local.properties file specifies sdk.dir , ndk.dir paths.

when try sh ./gradlew :examples:uiexplorer:android:app:installdebug command console has given output below;

enter image description here

when try command --debug parameter console output becomes long. error lines below;

08:07:50.341 [debug] [org.gradle.model.internal.registry.defaultmodelregistry] running model element 'tasks.validatedebugsigning' rule action project.<init>.tasks.validatedebugsigning() 08:07:50.347 [debug] [org.gradle.model.internal.registry.defaultmodelregistry] mutating tasks.validatedebugsigning using project.<init>.tasks.validatedebugsigning() 08:07:50.354 [debug] [org.gradle.model.internal.registry.defaultmodelregistry] transitioning model element 'tasks.validatedebugsigning' state projectionsdefined. 08:07:50.389 [error] [org.gradle.buildexceptionreporter] 08:07:50.402 [error] [org.gradle.buildexceptionreporter] failure: build failed exception. 08:07:50.409 [error] [org.gradle.buildexceptionreporter] 08:07:50.414 [error] [org.gradle.buildexceptionreporter] * went wrong: 08:07:50.420 [error] [org.gradle.buildexceptionreporter] task '.' not found in root project 'react-native'. 08:07:50.425 [error] [org.gradle.buildexceptionreporter] 08:07:50.429 [error] [org.gradle.buildexceptionreporter] * try: 08:07:50.436 [error] [org.gradle.buildexceptionreporter] run gradlew tasks list of available tasks. run --stacktrace option stack trace. 08:07:50.443 [lifecycle] [org.gradle.buildresultlogger] 08:07:50.449 [lifecycle] [org.gradle.buildresultlogger] build failed 08:07:50.456 [lifecycle] [org.gradle.buildresultlogger] 08:07:50.461 [lifecycle] [org.gradle.buildresultlogger] total time: 2 mins 25.343 secs 

how can overcome issue?

it seams grade thinks single option :examples:uiexplorer:android:app:installdebug series of options.

try running: bash gradlew ":examples:uiexplorer:android:app:installdebug"


Comments