AdvancedAndroid_Squawker
AdvancedAndroid_Squawker copied to clipboard
Unable to get provider
FATAL EXCEPTION: main Process: android.example.com.squawker, PID: 11340 java.lang.RuntimeException: Unable to get provider android.example.com.squawker.provider.generated.SquawkProvider
I found the resolution to this and posted it on Stack Overflow in response to a question there
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'
Hello! After building project and generate Content Provider I have error Package net.simonvt.schematic.utils does not exist
What is the problem here? Thank you!
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 .
Thank you. I have solved the problem. The mistake was in build.gradle file.
right:
@drspaceboo Thank that helped me.
In the manifest. Why is the content provided called .provider.generated.SquawkProvider instead of .provider.SquawkProvider or even better .SquawkProvider ?