AdvancedAndroid_Squawker icon indicating copy to clipboard operation
AdvancedAndroid_Squawker copied to clipboard

Unable to get provider

Open nattetteh opened this issue 7 years ago • 7 comments

FATAL EXCEPTION: main Process: android.example.com.squawker, PID: 11340 java.lang.RuntimeException: Unable to get provider android.example.com.squawker.provider.generated.SquawkProvider

nattetteh avatar Nov 08 '17 16:11 nattetteh

I found the resolution to this and posted it on Stack Overflow in response to a question there

https://stackoverflow.com/a/47384765/1260886

cassgenerator avatar Nov 20 '17 04:11 cassgenerator

This issue stems from annotation processing now being included in Gradle from version 2.2. You can fix project and get it running with the following changes.

Project level "build.gradle" remove this line:

classpath 'com.neenbedankt.gradle.plugins:android-apt:1.2' App level "build.gradle" remove this line:

apply plugin: 'android-apt' and change this line replacing apt with annotationProcessor:

apt 'net.simonvt.schematic:schematic-compiler:0.6.3'

relmalki avatar Nov 22 '17 19:11 relmalki

Hello! After building project and generate Content Provider I have error Package net.simonvt.schematic.utils does not exist

image

What is the problem here? Thank you!

parnekov avatar Jan 24 '18 14:01 parnekov

This is probably because you have not downloaded this package yet. Try disabling offline mode and rebuilding the project again.

To disable offline mode File>settings>build debugging and deployment> gradle> uncheck offline

On 24 Jan 2018 17:45, "Oleksandr Parnekov" [email protected] wrote:

Hello! After building project and generate Content Provider I have error Package net.simonvt.schematic.utils does not exist

[image: image] https://user-images.githubusercontent.com/29271613/35338190-edb56c44-0125-11e8-9d70-9b22738a87c2.png

What is the problem here? Thank you!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/udacity/AdvancedAndroid_Squawker/issues/10#issuecomment-360157471, or mute the thread https://github.com/notifications/unsubscribe-auth/AQY5Oj6M2oyGP-WbtLY_uFbAt72Ihferks5tN0IYgaJpZM4QWnyV .

simiyu1 avatar Jan 24 '18 20:01 simiyu1

Thank you. I have solved the problem. The mistake was in build.gradle file. image

right: image

parnekov avatar Jan 25 '18 16:01 parnekov

@drspaceboo Thank that helped me.

Madonahs avatar Jun 03 '18 19:06 Madonahs

In the manifest. Why is the content provided called .provider.generated.SquawkProvider instead of .provider.SquawkProvider or even better .SquawkProvider ?

Vkadel avatar Sep 02 '18 05:09 Vkadel