[英]compileSdkVersion is not specified error in React Native Android
[英]React Native build fails with "compileSdkVersion is not specified" message
我使用expo init RNCourse-Bare
創建了一個新的 React Native 項目,我遵循 expo 裸方法。 我沒有更改項目中的任何內容,只是嘗試使用npm run android --info
命令針對虛擬設備運行它,這是我的 output:
這是我的.bash_profile
:
export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
export ANDROID_HOME=$ANDROID_SDK_ROOT
export PATH=$PATH:ANDROID_SDK_ROOT/emulator
export PATH=$PATH:ANDROID_SDK_ROOT/platform-tools
這是我的虛擬設備:
另外,我安裝了 2 個版本的 SDK:
有任何想法嗎?
重新啟動我的筆記本電腦解決了這個問題
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.