iT邦幫忙

2025 iThome 鐵人賽

DAY 19
0

首先你需要有 Google Cloud Console 的 Gemini API key

檢查 ⬇️

打開 https://aistudio.google.com/

確認 這是Tier1
https://ithelp.ithome.com.tw/upload/images/20251003/20176017GlJHXOZuV5.png

!注意!

這是付費版本的API Key 第一次綁信用卡(金融卡)會送你 300 美金,要注意不要花超過,並且300美金有限期限要自己注意

API Key 不能給其他人(包含 AI)

環境建置

要有Android studio+內建的 copilot or gemini 則一

建立新專案 Empty Views Activcity

其他設定如下(名字可以自訂,習慣 kotlin可以改沒關係)

https://ithelp.ithome.com.tw/upload/images/20251003/20176017hOnOsoTLzw.png

開啟後最右側會有:
https://ithelp.ithome.com.tw/upload/images/20251003/20176017ZT0yUNntxO.png

copilot
https://ithelp.ithome.com.tw/upload/images/20251003/201760173Qrxb7slVT.png
gemini
https://ithelp.ithome.com.tw/upload/images/20251003/20176017U58LJG6hU5.png

確認有其中一個後今天就先到這裡


上一篇
Day 18 - Native APP ? 首先你要有 Gemini API Key
系列文
Android 不會只更新 UI ! 用 Vibe Coding ? 加速打造 Al-native App19
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 則留言

0
0
noalowo
iT邦新手 5 級 ‧ 2025-10-03 11:44:28

https://ithelp.ithome.com.tw/upload/images/20251003/20176154VKEvCxkKCq.jpg
/images/emoticon/emoticon25.gif跟我一樣

我要留言

立即登入留言