Hata metni
[error] Could not find the android platform. Make sure android has been added. [error] capacitor.config.json not found / webDir "www" does not exist
[error] Could not find the android platform. Make sure android has been added. [error] capacitor.config.json not found / webDir "www" does not exist
cap sync web dosyalarını Android projesine kopyalayamıyor. Android platformu eklenmemiş ya da web build klasörü yok.
npm run build. webDir klasörü oluşmalı.capacitor.config dosyasında webDir'in build çıktı klasörüyle (dist, build) aynı olduğunu kontrol et.npx cap add android çalıştır.npx cap sync android ile dosyaları kopyala.npx cap doctor ile sürüm uyumsuzluğuna bak.npm run build npx cap add android npx cap sync android npx cap open android npx cap doctor
Her web değişikliğinden sonra build ve sync sırasını tek bir betikte tut.
Yazar ve lisans: Nibras Code