iT邦幫忙

2025 iThome 鐵人賽

DAY 12
0
生成式 AI

Android 不會只更新 UI ! 用 Vibe Coding ? 加速打造 Al-native App系列 第 12

Day 12 - 運用 Vibe Coding 在 Android Studio 上快速製作記帳 APP Part2

  • 分享至 

  • xImage
  •  

在昨天我們拿到了prd.txt
如果你用的是 普通 AI 那需要自己複製貼上,為了感受 vibe 氛圍,建議完全照著做不需思考,如果你嫌他一步一步太慢,可以直接輸入提示詞”這樣來回修正太麻煩,直接幫我把最終檔案一次輸出三個”
如果你用的是 AI studio 的 Agent 那他應該已經幫你建置好了
而今天我們就要來看實作結果

看第一版 AI 做的怎麼樣

首先讓他祝賀我 :)
https://ithelp.ithome.com.tw/upload/images/20250926/20176017JiEhZR8geT.png
可以看到就算你不說,他也會使用 MVVM這種現代架構,本地資料庫我們沒指定,他是用了ROOM
這時候我們開心的在 APP 執行,然後你有可能會遇到

怎麼錯了啦

https://ithelp.ithome.com.tw/upload/images/20250926/20176017wrcMz0l6af.png
不用害怕,沒錯我才害怕(Agent 會自動 debug,有可能真的沒錯)
這時候要自己修?
怎麼可能我們在 Vibe coding ㄟ ,當然是跑去找 AI 哭阿 ⬇️
https://ithelp.ithome.com.tw/upload/images/20250926/201760173OmCPnZmAa.png
AI 輸出:
https://ithelp.ithome.com.tw/upload/images/20250926/20176017ozhYa3uVb5.png

可以看到他知識不是最新的,這也是我在人機協作時很常遇到的事情

修改好後通常還會出現問題,我們就跟他”合作”? 改到可以正常執行為止

其他可能的錯誤:

漏東漏西(依據我們目前的提示詞,他並沒有”整個檔案的全局觀”)
https://ithelp.ithome.com.tw/upload/images/20250926/20176017b8lP9vMPgv.png

直接crash(依據我們目前的提示詞,他考慮的不夠慎密)
https://ithelp.ithome.com.tw/upload/images/20250926/20176017XAwoXsIxVo.png

成功啟動後今天就先到這

目前畫面(待修改...):

主頁:

https://ithelp.ithome.com.tw/upload/images/20250926/20176017A6N7mYEw7n.png

資產:

https://ithelp.ithome.com.tw/upload/images/20250926/20176017wfDplCD3h5.png

存錢罐:

https://ithelp.ithome.com.tw/upload/images/20250926/20176017iEALgi0wj4.png

設定:

https://ithelp.ithome.com.tw/upload/images/20250926/20176017wi0AJ7q6eV.png

可以看到真的跑版到誇張:)


上一篇
Day 11 - 運用 Vibe Coding 在 Android Studio 上快速製作記帳 APP Part1
系列文
Android 不會只更新 UI ! 用 Vibe Coding ? 加速打造 Al-native App12
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言