Gradleにroomの依存関係を追加

This commit is contained in:
it232115 2024-06-18 14:32:18 +09:00
parent a599489e9c
commit 794d3b1cfb
3 changed files with 6 additions and 28 deletions

View File

@ -46,3 +46,9 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
//room用の依存関係を追加
dependencies {
def room_version = "2.4.1"
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version"
}

View File

@ -1,27 +0,0 @@
//package com.example.oplogy;
//import com.google.maps.GeoApiContext;
//import com.google.maps.GeocodingApi;
//import com.google.maps.model.GeocodingResult;
//import com.google.type.LatLng;
//
//
//public class AddressConverter {
// public static LatLng convertAddressToLatLng(String address) {
// try {
// // Google MapsのAPIキーを使用してGeoApiContextオブジェクトを作成します
// GeoApiContext context = new GeoApiContext.Builder()
// .apiKey("AIzaSyBQ1Ak-I2NL5TP4K59ZI0VgzKk6HNZuusw") //GoogleMapsAPiのAPiキー
// .build();
// // GeocodingApiを使用して住所を緯度経度に変換します
// GeocodingResult[] results = GeocodingApi.geocode(context, address).await();
// if (results != null && results.length > 0) {
// // 位置情報緯度と経度を返します
// return results[0].geometry.location;
// }
// } catch (Exception e) {
// e.printStackTrace();
// }
// // 結果が存在しない場合やエラーが発生した場合はnullを返します
// return null;
// }
//}

View File

@ -27,6 +27,5 @@ public class TimePick extends DialogFragment implements
@Override
public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
}
}