Question

I have followed this tutorial about Windows Azure mobile services using Android: http://www.windowsazure.com/en-us/documentation/articles/mobile-services-android-get-started-data/

but I always get the error "the import com.microsoft cannot be resolved" for the import lines such as: "import com.microsoft.windowsazure.mobileservices.MobileServiceClient" ,.. etc

Consequently, all the following related code added to the project contains errors.

I added the required files to the "libs " folder, and I am connected to the internet and refreshed the project...

I cannot figure out why the imports fail.

Any idea?

Was it helpful?

Solution

Somehow your IDE is not using the libraries. Are you using Eclipse?

If so, in Eclipse, right click on the project, go to Properties, choose Java Build Path, and then Order and Export. Make sure the box next to "Android Private Libraries" is checked.

OTHER TIPS

Maybe the following is missing from your build.gradle file.

dependencies { 
compile 'com.microsoft.azure:azure-mobile-services-android-sdk:2.0.2+'
}

For info on the latest sdk version, you can visit :- https://github.com/Azure/azure-mobile-services/blob/master/CHANGELOG.android.md

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top