Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get provider #10

Open
nattetteh opened this issue Nov 8, 2017 · 7 comments
Open

Unable to get provider #10

nattetteh opened this issue Nov 8, 2017 · 7 comments

Comments

@nattetteh
Copy link

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

@cassgenerator
Copy link

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

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

@relmalki
Copy link

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'

@parnekov
Copy link

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!

@simiyu1
Copy link

simiyu1 commented Jan 24, 2018 via email

@parnekov
Copy link

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

right:
image

@Madonahs
Copy link

Madonahs commented Jun 3, 2018

@drspaceboo Thank that helped me.

@Vkadel
Copy link

Vkadel commented Sep 2, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants