Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to protect my source code from gemini in Android Studio

As it is known, Android Studio also added gemini support. Can I add a block to gemini to prevent it from analysing my source code?

like image 351
snorlax Avatar asked May 18 '26 12:05

snorlax


2 Answers

The easiest way is creating .aiexclude in project root. Detail syntax can be found here: https://developer.android.com/studio/preview/gemini/aiexclude

An .aiexclude file with single * character will block all files in its directory and all sub-directories.

like image 167
anhtuannd Avatar answered May 23 '26 06:05

anhtuannd


When I examine the Android Studio settings, there is an option like below. Blocking can be provided with this option.

How to protect my source code from gemini in Android Studio

like image 32
snorlax Avatar answered May 23 '26 07:05

snorlax



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!