saving . . . saved kotlin problem,not able to go through this problem has been deleted. kotlin problem,not able to go through this problem has been hidden .
kotlin problem,not able to go through this problem
Title
Question
<ul> <li>Type inference failed. Please try to specify type arguments explicitly. </li><li>Type mismatch: inferred type is kotlin.collections.ArrayList<string>? /* = java.util.ArrayList<string>? */ but (MutableCollection<out string!="">..Collection<string!>) was expected</string!></out></string></string> </li></ul>

Android-app-using-Kotlin Creating-a-Search-App 11-12 min 40-50 sec 09-06-20, 1:11 p.m. satrishabh

Answers:

The source code used in this tutorial are available in the Code files link of this tutorial page. You can find the link below the video player.

Please download and open the file  and check/compare the code with your code.

or

Go through the below link:
https://discuss.kotlinlang.org/t/type-mismatch-inferred-type-is-java-util-arraylist-org-example-domain-orderdetail-but-java-util-list-org-example-domain-orderdetail-was-expected/424
09-06-20, 1:41 p.m. NirmalaVenkat


yes i did go through it and the problem comes again and again
 languageOptions.addAll(ArrayList(fossVsLanguage.get(selectedFoss)))
this line I got the problem again
:app:compileDebugAidl
:app:compileDebugRenderscript
after step bu step I get this in the problem

09-06-20, 1:49 p.m. satrishabh


Click on the File menu in the menu bar and Select Invalidate Caches/ Restart menu.

Close the project and open it again.

Please check this:
https://stackoverflow.com/questions/29766830/execution-failed-for-task-appcompiledebugaidl-aidl-is-missing
10-06-20, 2:45 p.m. NirmalaVenkat


Please you can also use this line of code "languageOptions.addAll(ArrayList<String>(fossVsLanguage.get(selectedFoss)!!))" in place of this "languageOptions.addAll(ArrayList(fossVsLanguage.get(selectedFoss)))"
12-10-20, 4:52 p.m. edemtech


Log-in to answer to this question.