내 앱에 Facebook 공유를 통합하려하고 있습니다.내 앱에 Facebook 공유하기
나는 다음과 같은 오전이 가이드 :
https://developers.facebook.com/docs/sharing/android
모든 그것까지 잘 갔다는 말한다 :로 연결
Add Facebook Activity - Include this in AndroidManifest.xml
:
없이 어디에서 그 페이지는 나에게 알려준다. 내 응용 프로그램에 활동을 추가 할 수 있습니다.
나는 동영상을 발견했지만 활동을 추가하고 실행 해보기 위해 동영상에있는 코드 (자동 완성 안함)를 입력 할 때 찾아 냈습니다. 그냥 테스트로
private void share() {
ShareLinkContent content = new ShareLinkContent.Builder()
.setContentTitle("This is the title")
.setContentDescription("This is the description")
.setContentUrl(Uri.parse("www.google.com"))
.build();
ShareDialog.show(getActivity(), content);
}
하지만 공유 화면을로드 :
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_id"/>
<provider
android:name="com.facebook.FacebookContentProvider"
android:authorities="com.facebook.app.FacebookContentProvider12345678"
android:exported="true"/>
내 매니페스트
과 : 내가 좋아하는 다른 모든 일을 한
Error:Execution failed for task ':app:processReleaseManifest'.
> Manifest merger failed : Attribute activity#[email protected] value=(@android:style/Theme.Translucent.NoTitleBar) from AndroidManifest.xml:27:15-74
is also present at [com.facebook.android:facebook-android-sdk:4.16.0] AndroidManifest.xml:32:13-63 value=(@style/com_facebook_activity_theme).
Suggestion: add 'tools:replace="android:theme"' to <activity> element at AndroidManifest.xml:26:5-30:17 to override.
: 나는 오류 정보가 없으면 몇 초 후에 충돌이 발생합니까?
도와주세요.
내가 이것을 시도했지만이 매니페스트의 응용 프로그램 태그 안드로이드에서 이것을 시도 – x10sion
위에 언급 된 로그 캣 오류로 작동 나던 포스트에서 말했듯이 : 라벨 = "@ 문자열/APP_NAME" 도구 : 대체 = "android : label" –
나에게 맞는 작품 –