Using droidQuery in Android Studio
Opened this issue · 0 comments
johamm commented
Downloaded the latest release and added the folder to the folder in the project:
C:\Users\setup\Desktop\BarcodeReader\app\libs\droidQuery-1.2.2
Tried to add the following to the project (main activity java file):
ajax("{url: 'http://www.example.com', type: 'POST', dataType: 'JSON', data: '" + data +"'}");
but getting the following error:
Cannot resolve method 'ajax(java.lang.String)'
Then tried:
$.ajax("{url: 'http://www.example.com', type: 'POST', dataType: 'JSON', data: '" + data +"'}");
but got the following error:
Cannot resolve symbol '$'
Can see we already have a reference to including jar files in the dependancies section of the build.gradle file so it should be autoloading it right?