San*_*iya 0 facebook-login typescript ionic2
我正在开发在 ubantu 中Hybrid使用的应用程序ionic-2。我想在我的应用程序中添加 Facebook 登录但安装 Facebook 插件应用程序构建失败如果我删除 Facebook 插件应用程序将成功构建请帮助我。谢谢你。
我安装的插件
ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="123456789" --variable APP_NAME="myApplication"
Run Code Online (Sandbox Code Playgroud)
错误信息
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 17s
FAILED
25 actionable tasks: 1 executed, 24 up-to-date
(node:30083) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /mnt/Workspace/work/project/ionic 2/DrinkOrdering/platforms/android/gradlew: Command failed with exit code 1 Error output:
/mnt/Workspace/work/project/ionic 2/DrinkOrdering/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:42: AAPT: error: resource string/fb_app_id (aka drinkordering.com:string/fb_app_id) not found.
/mnt/Workspace/work/project/ionic 2/DrinkOrdering/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:45: AAPT: error: resource string/fb_app_name (aka drinkordering.com:string/fb_app_name) not found.
/mnt/Workspace/work/project/ionic 2/DrinkOrdering/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:49: AAPT: error: resource string/fb_app_name (aka drinkordering.com:string/fb_app_name) not found.
/mnt/Workspace/work/project/ionic 2/DrinkOrdering/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:42: error: resource string/fb_app_id (aka drinkordering.com:string/fb_app_id) not found.
/mnt/Workspace/work/project/ionic 2/DrinkOrdering/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:45: error: resource string/fb_app_name (aka drinkordering.com:string/fb_app_name) not found.
/mnt/Workspace/work/project/ionic 2/DrinkOrdering/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:49: error: resource string/fb_app_name (aka drinkordering.com:string/fb_app_name) not found.
error: failed processing manifest.
Failed to execute aapt
Run Code Online (Sandbox Code Playgroud)
当我将这些行添加到<resource>in时,我得到了一个更成功的构建platforms/android/app/src/main/res/values/strings.xml:
<string name="fb_app_id">APPID</string>
<string name="fb_app_name">APPNAME</string>
Run Code Online (Sandbox Code Playgroud)
该文件已经具有这些值,但字符串名称不同。
我本来想把这段代码放在我的主要内容中,config.xml但我无法让它以这种方式工作。将这些添加到res/values/facebookconnect.xml或res/config.xml也不起作用。
| 归档时间: |
|
| 查看次数: |
984 次 |
| 最近记录: |