Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:Execution failed for task 'app:generateDebugBuildConfig'

Tags:

android

gradle

Error:Execution failed for task 'app:generateDebugBuildConfig'

java.io.FileNotFoundException: C:\Users\bok\Desktop\Zipzap\app\build\generated\source\buildConfig\debug\com\storie\myapp \BuildConfig.java (Le chemin d’accès spécifié est introuvable)

What's the solution ..

I hope to find a solution to this problem

like image 238
abdo 20122 Avatar asked Dec 19 '17 12:12

abdo 20122


3 Answers

Try to clean project this is working for me

for android

$ cd android 

$ ./gradlew clean

BUILD SUCCESSFUL in 5s
1 actionable task: 1 executed
like image 177
Parveen Chauhan Avatar answered Nov 16 '22 05:11

Parveen Chauhan


Changing port worked for me

You Could try:

react-native run-android --port=8082

like image 24
Mufaddal Hamid Avatar answered Nov 16 '22 05:11

Mufaddal Hamid


Try to clean and rebuild project or you can try to remove whole build folder and build after removing. If it won't help, show your build.gradle, your current information isn't enough to recognise the reason of problem.

like image 1
Ecnill Avatar answered Nov 16 '22 05:11

Ecnill