Category : android

Now any dependencies are not installing. When try to build it gives fallowing error. Note: C:Users{user name}AppDataLocalPubCachehostedpub.dartlang.orgflutter_tts-2.1.0androidsrcmainjavacomtundralabsflutterttsFlutterTtsPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. FAILURE: Build failed with an exception. What went wrong: Execution failed for task ‘:flutter_tts:extractDebugAnnotations’. Could not resolve all files for configuration ‘:flutter_tts:lintClassPath’. Could not download lint-checks-27.1.1.jar ..

Read more

query.findInBackground(new FindCallback<ParseObject>() { public void done(List<ParseObject> products, ParseException e) { if (e == null) { Log.d("products", "Retrieved " + products.get(0).getObjectId() + " products"); Log.d("che", String.valueOf(products.get(0).getInt("price"))); name.add(products.get(0).getString("name")); price.add(String.valueOf(products.get(0).getInt("price"))); images.add(R.mipmap.ic_launcher); Log.d("one", String.valueOf(name.size())); Log.d("price", String.valueOf(price)); Log.d("images", String.valueOf(images)); lAdapter = new ListAdapter(Cart.this, name, price, images); Log.d("onmala",String.valueOf(price.size())); lv.setAdapter(lAdapter); } else { Log.d("sd", e.getMessage()); Snackbar snackbar = Snackbar.make(findViewById(android.R.id.content), "Server failed", Snackbar.LENGTH_LONG); ..

Read more

I am using navigation component for jetpack compose like this: @Composable fun FoodiumNavigation() { val navController = rememberNavController() NavHost( navController = navController, startDestination = Screen.Main.route, ) { composable(Screen.Main.route) { MainScreen(navController) } … } } And I am getting viewmodel in my MainScreen composable like this: @Composable fun MainScreen(navController: NavController) { val mainViewModel: MainViewModel = viewModel() ..

Read more

I was using react-native version 0.59 and react-native-webview version 5.12.1 . Now i upgraded my app to react-native 0.63 and react-native-webview version 11.0.3 . I had this class in android in order to customize location in web-view . Now after upgrading it shows an error : createViewManagers(ReactApplicationContext)’ in ‘com.reactnativecommunity.webview.RNCWebViewPackage’ clashes with ‘createViewManagers(ReactApplicationContext)’ in ‘com.facebook.react.ReactPackage’; attempting ..

Read more

I want to get the imageUri and store it to firestore //asdasdasdasdasdasdasd if(imageUri != null) { /asdasdasdasdasdasd StorageReference ref = FirebaseStorage.getInstance().getReference().child("profile_images").child(mUsername.getText().toString()); /asdasdasdasdasdasd //asdasdasdasd //asdasdasd ref.putFile(imageUri) .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() { /asdasdasd @Override public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) { /asdasdasdasdasd Toast.makeText(getApplicationContext(), "PROFILE PICTURE SUCCESSFULLY UPLOADED.", Toast.LENGTH_SHORT).show(); } }) asdasdasdasdasdasdas .addOnFailureListener(new OnFailureListener() { @Override public void onFailure(@NonNull Exception e) { ..

Read more