skip to Main Content

Android Studio – Dagger Hilt Testing Error – error: cannot find symbol @ScopeMetadata, @QualifierMetadata

I'm studying Tests on Android, but when doing the tests with Dagger Hilt, I'm having the following error: > Task :app:kaptDebugAndroidTestKotlin C:UsersHenriqueDevProjetos-AndroidTestingOnAndroidTutorialappbuildgeneratedsourcekaptdebugAndroidTestcomyoutubetutorialstestingonandroidtutorialdiTestAppModule_ProvideInMemoryDbFactory.java:11: error: cannot find symbol @ScopeMetadata ^ symbol: class ScopeMetadata C:UsersHenriqueDevProjetos-AndroidTestingOnAndroidTutorialappbuildgeneratedsourcekaptdebugAndroidTestcomyoutubetutorialstestingonandroidtutorialdiTestAppModule_ProvideInMemoryDbFactory.java:12: error: cannot find symbol @QualifierMetadata ^ symbol: class…

VIEW QUESTION

Android Studio – Show connected bluetooth devices Kotlin

I can only find how to show paired bluetooth devices and not the current connected bluetooth devices. This is the code to show paired: val blueToothManager=applicationContext.getSystemService(BLUETOOTH_SERVICE) as BluetoothManager val bluetoothAdapter=blueToothManager.adapter var pairedDevices = bluetoothAdapter.bondedDevices var data:StringBuffer = StringBuffer() for(device: BluetoothDevice…

VIEW QUESTION
Back To Top
Search