Leo
Leo

Reputation: 71

how i set up an react-native environment with android studio?

<============-> 99% EXECUTING [40s]
> :app:installDebug

is that normal behaviour for setting up? I have been installing for more than 10 mins, but still load around 99%, does't move further for a long while, what is the problem with this?

Upvotes: 0

Views: 57

Answers (2)

Andrew Ananda
Andrew Ananda

Reputation: 96

At times its an issue with cache, you can clear gradle with

cd android then ./gradlew clean

Upvotes: 1

Andrew Ananda
Andrew Ananda

Reputation: 96

You need to set up

export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools

Upvotes: 1

Related Questions