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 – How to select any item from AutoCompleteTextView programmatically in Android Studio?

AutoCompleteTextView autoCompleteTextView ArrayAdapter<String> adapter; ArrayList<String> list = new ArrayList<>(); @Override protected void onCreate(Bundle savedInstanceState) { // code... list.add("First"); list.add("Second"); list.add("Third"); list.add("Forth"); list.add("Fifth"); autoCompleteTextView = findViewById(R.id.auto_complete); adapter = new ArrayAdapter<>(this, R.layout.drop_down, list); autoCompleteTextView.setAdapter(adpater); } then, after adding some strings to ArrayList…

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

Android Studio – (Flutter) Error: The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' is nullable and 'String' isn't

im using flutter in android studio. coding as below. class _loginscreenState extends State<loginscreen> { GlobalKey<FormState> formKey = GlobalKey<FormState>(); String? _email, _password; void signin() async { await FirebaseAuth.instance .signInWithEmailAndPassword(email: _email, password: _password) .catchError((onError) { print(onError); }).then((authUser) => {print(authUser.user?.uid)}); } please help…

VIEW QUESTION
Back To Top
Search