Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
错误:必须在AndroidManifest.xml中设置有效的Facebook应用程序id_Facebook_Typescript_Firebase_Plugins_Nativescript - Fatal编程技术网

错误:必须在AndroidManifest.xml中设置有效的Facebook应用程序id

错误:必须在AndroidManifest.xml中设置有效的Facebook应用程序id,facebook,typescript,firebase,plugins,nativescript,Facebook,Typescript,Firebase,Plugins,Nativescript,我明白这一点。这个应用我在一个移动设备上运行小米红米4A。 成功安装并显示此错误。我不明白为什么?我不能在这个代码中使用Facebook 错误: 已在设备上成功同步应用程序org.nativescript.pushnotify 8066aa497d24。ActivityManager:启动程序 26158:org.nativescript.pushnotify/u0a238用于活动 org.nativescript.pushnotify/com.tns.nativescript活动调用方=nul

我明白这一点。这个应用我在一个移动设备上运行小米红米4A。 成功安装并显示此错误。我不明白为什么?我不能在这个代码中使用Facebook

错误:

已在设备上成功同步应用程序org.nativescript.pushnotify 8066aa497d24。ActivityManager:启动程序 26158:org.nativescript.pushnotify/u0a238用于活动 org.nativescript.pushnotify/com.tns.nativescript活动调用方=null 07-06 12:21:32.247 26158 26158 E AndroidRuntime:
com.tns.Runtime.callJSMethodNative(本机方法)07-06 12:21:32.247 2615826158E AndroidRuntime:
com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1101)07-06 12:21:32.247 26158 E AndroidRuntime:
com.tns.Runtime.callJSMethodImpl(Runtime.java:983)07-06 12:21:32.247 2615826158E AndroidRuntime:
com.tns.Runtime.callJSMethod(Runtime.java:970)07-06 12:21:32.247 2615826158E AndroidRuntime:
com.tns.Runtime.callJSMethod(Runtime.java:954)07-06 12:21:32.247 2615826158E AndroidRuntime:
com.tns.Runtime.callJSMethod(Runtime.java:946)07-06 12:21:32.247 2615826158E AndroidRuntime:
com.tns.Runtime.callJSMethodNative(本机方法)07-06 12:21:32.247 2615826158E AndroidRuntime:
com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1101)07-06 12:21:32.247 26158 E AndroidRuntime:
com.tns.Runtime.callJSMethodImpl(Runtime.java:983)07-06 12:21:32.247 2615826158E AndroidRuntime:
com.tns.Runtime.callJSMethod(Runtime.java:970)07-06 12:21:32.247 2615826158E AndroidRuntime:
com.tns.Runtime.callJSMethod(Runtime.java:954)07-06 12:21:32.247 2615826158E AndroidRuntime:
com.tns.Runtime.callJSMethod(Runtime.java:946)07-06 12:21:32.247 2615826158E AndroidRuntime:在 com.tns.Runtime.callJSMethodNative(本机方法)07-06 12:21:32.247 2615826158E AndroidRuntime:在 com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1101)07-06 12:21:32.247 26158 26158 E AndroidRuntime:at com.tns.Runtime.callJSMethodImpl(Runtime.java:983)07-06 12:21:32.247 2615826158E AndroidRuntime:在 com.tns.Runtime.callJSMethod(Runtime.java:970)07-06 12:21:32.247 2615826158E AndroidRuntime:在 com.tns.Runtime.callJSMethod(Runtime.java:954)07-06 12:21:32.247 2615826158E AndroidRuntime:在 com.tns.Runtime.callJSMethod(Runtime.java:946)System.err: java.lang.RuntimeException:无法启动活动 ComponentInfo{org.nativescript.pushnotify/com.tns.nativescript活动}: com.tns.NativeScriptException:System.err:在创建时调用js方法 失败的System.err:System.err:Error:必须输入有效的Facebook应用程序id 在AndroidManifest.xml中设置或通过调用 初始化sdk之前,请访问FacebookSdk.setApplicationId。System.err: facebook.FacebookSdk.sdkinInitialize(FacebookSdk.java:276) 系统错误:
facebook.FacebookSdk.sdkinInitialize(FacebookSdk.java:232) System.err:com.tns.Runtime.callJSMethodNative(本机方法) 系统错误:
com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1101) System.err:com.tns.Runtime.callJSMethodImpl(Runtime.java:983) System.err:com.tns.Runtime.callJSMethod(Runtime.java:970) System.err:com.tns.Runtime.callJSMethod(Runtime.java:954) System.err:com.tns.Runtime.callJSMethod(Runtime.java:946) 系统错误:
NativeScriptActivity.onCreate(NativeScriptActivity.java:18) System.err:android.app.Activity.performCreate(Activity.java:6875) 系统错误:
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119) 系统错误:
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2659) 系统错误:
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2767) 系统错误:
android.app.ActivityThread.-wrap12(ActivityThread.java)System.err:
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1514) System.err:android.os.Handler.dispatchMessage(Handler.java:102) System.err:android.os.Looper.loop(Looper.java:163)System.err:
android.app.ActivityThread.main(ActivityThread.java:6221)System.err: java.lang.reflect.Method.invoke(本机方法)System.err:
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) 系统错误:
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794) System.err:文件: "file:///data/data/org.nativescript.pushnotify/files/app/tns_modules/nativescript-plugin-firebase/firebase.js, 行:331,列:41 System.err:System.err:StackTrace:System.err: 框架:函数:'runInit', 档案:'file:///data/data/org.nativescript.pushnotify/files/app/tns_modules/nativescript-plugin-firebase/firebase.js', 行:331,列:42系统错误:帧: 函数:'Observable.notify', 档案:'file:///data/data/org.nativescript.pushnotify/files/app/tns_modules/tns-core-modules/data/observable/observable.js', 第110行第23列System.err:Frame:function:'notifyLaunch', 档案:'file:///data/data/org.nativescript.pushnotify/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', 行:870,列:17系统错误:帧: 函数:'ActivityCallbacksImplementation.setActivityContent', 档案:'file:///data/data/org.nativescript.pushnotify/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', 行:803,列:28系统错误:帧: 函数:'ActivityCallbackImplementation.onCreate', 档案:'file:///data/data/org.nativescript.pushnotify/files/app/tns_modules/tns-core-modules/ui/frame/frame.js', 行:677,列:14系统错误:帧: 函数:'NativeScriptActivity.onCreate', 档案:'file:///data/data/org.nativescript.pushnotify/files/app/tns_modules/tns-core-modules/ui/frame/activity.js', 行:20,列:25 System.err:System.err:at android.app.ActivityThread.performLaunchActivity(Acti
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="__PACKAGE__"
      android:versionCode="10017"
      android:versionName="1.17">
...
    <application android:name="com.tns.NativeScriptApplication"
             android:allowBackup="true"
             android:icon="@drawable/icon"
             android:label="@string/app_name"
             android:theme="@style/AppTheme">
        ...
        <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>
    </application>
</manifest>
<resources>
    ...
    <string name="facebook_app_id">fb{{ facebook_app_id }}</string>
</resources>