Unity Android adding com.facebook.FacebookContentProvider to manifest when it shouldn't
I'm developing a test app with some pretty basic functionality to prove a few concepts. I do not have any Facebook plugins or SDKs included, nor do I want them. I just want to test some Google Play services on an actual Android device. However, when I build the apk, and run it from Android Studio, the AndroidManifest has a series of activity tags with references to com.facebook, and a provider named com.facebook.FacebookContentProvider.
If I deploy the apk to my device, I get this error:
java.lang.RuntimeException: Unable to get provider
com.facebook.FacebookContentProvider:
java.lang.ClassNotFoundException: Didn't find class
"com.facebook.FacebookContentProvider" on path: DexPathList[[zip file
"/data/app/com.DanGame.TestApp-KgL6Jybi9sG1Q0LHnxAnNA==/base.apk"],nativeLibraryDirectories=[/data/app/com.DanGame.TestApp-KgL6Jybi9sG1Q0LHnxAnNA==/lib/arm,
/data/app/com.DanGame.TestApp-KgL6Jybi9sG1Q0LHnxAnNA==/base.apk!/lib/armeabi-v7a,
/system/lib]]
I could just bite the bullet and include the Facebook SDK, or try to manually adjust the manifest after it's generated. But what I really need to know is how to get Unity to stop generating a bad manifest? There has to be a way to build a functioning Android apk from Unity without Facebook.
add a comment |
I'm developing a test app with some pretty basic functionality to prove a few concepts. I do not have any Facebook plugins or SDKs included, nor do I want them. I just want to test some Google Play services on an actual Android device. However, when I build the apk, and run it from Android Studio, the AndroidManifest has a series of activity tags with references to com.facebook, and a provider named com.facebook.FacebookContentProvider.
If I deploy the apk to my device, I get this error:
java.lang.RuntimeException: Unable to get provider
com.facebook.FacebookContentProvider:
java.lang.ClassNotFoundException: Didn't find class
"com.facebook.FacebookContentProvider" on path: DexPathList[[zip file
"/data/app/com.DanGame.TestApp-KgL6Jybi9sG1Q0LHnxAnNA==/base.apk"],nativeLibraryDirectories=[/data/app/com.DanGame.TestApp-KgL6Jybi9sG1Q0LHnxAnNA==/lib/arm,
/data/app/com.DanGame.TestApp-KgL6Jybi9sG1Q0LHnxAnNA==/base.apk!/lib/armeabi-v7a,
/system/lib]]
I could just bite the bullet and include the Facebook SDK, or try to manually adjust the manifest after it's generated. But what I really need to know is how to get Unity to stop generating a bad manifest? There has to be a way to build a functioning Android apk from Unity without Facebook.
add a comment |
I'm developing a test app with some pretty basic functionality to prove a few concepts. I do not have any Facebook plugins or SDKs included, nor do I want them. I just want to test some Google Play services on an actual Android device. However, when I build the apk, and run it from Android Studio, the AndroidManifest has a series of activity tags with references to com.facebook, and a provider named com.facebook.FacebookContentProvider.
If I deploy the apk to my device, I get this error:
java.lang.RuntimeException: Unable to get provider
com.facebook.FacebookContentProvider:
java.lang.ClassNotFoundException: Didn't find class
"com.facebook.FacebookContentProvider" on path: DexPathList[[zip file
"/data/app/com.DanGame.TestApp-KgL6Jybi9sG1Q0LHnxAnNA==/base.apk"],nativeLibraryDirectories=[/data/app/com.DanGame.TestApp-KgL6Jybi9sG1Q0LHnxAnNA==/lib/arm,
/data/app/com.DanGame.TestApp-KgL6Jybi9sG1Q0LHnxAnNA==/base.apk!/lib/armeabi-v7a,
/system/lib]]
I could just bite the bullet and include the Facebook SDK, or try to manually adjust the manifest after it's generated. But what I really need to know is how to get Unity to stop generating a bad manifest? There has to be a way to build a functioning Android apk from Unity without Facebook.
I'm developing a test app with some pretty basic functionality to prove a few concepts. I do not have any Facebook plugins or SDKs included, nor do I want them. I just want to test some Google Play services on an actual Android device. However, when I build the apk, and run it from Android Studio, the AndroidManifest has a series of activity tags with references to com.facebook, and a provider named com.facebook.FacebookContentProvider.
If I deploy the apk to my device, I get this error:
java.lang.RuntimeException: Unable to get provider
com.facebook.FacebookContentProvider:
java.lang.ClassNotFoundException: Didn't find class
"com.facebook.FacebookContentProvider" on path: DexPathList[[zip file
"/data/app/com.DanGame.TestApp-KgL6Jybi9sG1Q0LHnxAnNA==/base.apk"],nativeLibraryDirectories=[/data/app/com.DanGame.TestApp-KgL6Jybi9sG1Q0LHnxAnNA==/lib/arm,
/data/app/com.DanGame.TestApp-KgL6Jybi9sG1Q0LHnxAnNA==/base.apk!/lib/armeabi-v7a,
/system/lib]]
I could just bite the bullet and include the Facebook SDK, or try to manually adjust the manifest after it's generated. But what I really need to know is how to get Unity to stop generating a bad manifest? There has to be a way to build a functioning Android apk from Unity without Facebook.
asked Nov 12 '18 at 19:03
Dan BDan B
13112
13112
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Looks like the issue was a caching problem. I was building the APK in Unity and profiling it from Android Studio. But Android Studio caches off the APK in the Users directory, so recompiling the apk in Unity will not reload the Android Studio project. Even though I had cleared all references to Facebook from my manifest in Unity, Android Studio was using an old apk.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53268526%2funity-android-adding-com-facebook-facebookcontentprovider-to-manifest-when-it-sh%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Looks like the issue was a caching problem. I was building the APK in Unity and profiling it from Android Studio. But Android Studio caches off the APK in the Users directory, so recompiling the apk in Unity will not reload the Android Studio project. Even though I had cleared all references to Facebook from my manifest in Unity, Android Studio was using an old apk.
add a comment |
Looks like the issue was a caching problem. I was building the APK in Unity and profiling it from Android Studio. But Android Studio caches off the APK in the Users directory, so recompiling the apk in Unity will not reload the Android Studio project. Even though I had cleared all references to Facebook from my manifest in Unity, Android Studio was using an old apk.
add a comment |
Looks like the issue was a caching problem. I was building the APK in Unity and profiling it from Android Studio. But Android Studio caches off the APK in the Users directory, so recompiling the apk in Unity will not reload the Android Studio project. Even though I had cleared all references to Facebook from my manifest in Unity, Android Studio was using an old apk.
Looks like the issue was a caching problem. I was building the APK in Unity and profiling it from Android Studio. But Android Studio caches off the APK in the Users directory, so recompiling the apk in Unity will not reload the Android Studio project. Even though I had cleared all references to Facebook from my manifest in Unity, Android Studio was using an old apk.
answered Nov 14 '18 at 16:24
Dan BDan B
13112
13112
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53268526%2funity-android-adding-com-facebook-facebookcontentprovider-to-manifest-when-it-sh%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown