I been following online tutorials on how to insert data into a database from an android app and have everything working except this small part
List
If you realy want to use NameValuePair in your application, you can add the useLibrary 'org.apache.http.legacy' to your gradle:
NameValuePair
useLibrary 'org.apache.http.legacy'
buildtypes{ //------------ //---------- } useLibrary 'org.apache.http.legacy'