试图在GNU/Linux上解码base64文件,我得到"base64:无效输入".
$ base64 test.zip | base64 -d > test2.zip
base64: invalid input
$ ll test*
-rw-r--r-- 1 user grp 152 19 11:41 test.zip
-rw-r--r-- 1 user grp 57 19 11:42 test2.zip
Run Code Online (Sandbox Code Playgroud)
我尝试了dos2unix命令,但它没有帮助.
我的base64版本:
$ base64 --version
base64 (GNU coreutils) 5.97
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written …Run Code Online (Sandbox Code Playgroud) 我试图从Android创建一个发布apk文件,但当我创建一个PNG图像的发布apk时,我收到Duplicate Resource错误.最初我认为这种情况正在发生,因为我在现有项目中犯了一个错误,但是当我用单个Image组件本身创建一个新项目时,我收到了Duplicate Resource错误.以下是我遵循的步骤
react-native init demoPNG在assets文件夹中添加图像.Image用上面的PNG图像实现组件.现在使用cmd捆绑它
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
然后使用Generate Signed APKfrom 生成release apk Android Studio.
这将抛出以下错误:
[drawable-mdpi-v4/assets_mario] /Users/jeffreyrajan/Tutorials/RN/errorCheck/android/app/src/main/res/drawable-mdpi/assets_mario.png [drawable-mdpi-v4/assets_mario] /Users/jeffreyrajan/Tutorials/RN/errorCheck/android/app/build/generated/res/react/release/drawable-mdpi-v4/assets_mario.png: Error: Duplicate resources
:app:mergeReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeReleaseResources'.
> [drawable-mdpi-v4/assets_mario] /Users/jeffreyrajan/Tutorials/RN/errorCheck/android/app/src/main/res/drawable-mdpi/assets_mario.png [drawable-mdpi-v4/assets_mario] /Users/jeffreyrajan/Tutorials/RN/errorCheck/android/app/build/generated/res/react/release/drawable-mdpi-v4/assets_mario.png: Error: Duplicate resources
* Try:
Run …Run Code Online (Sandbox Code Playgroud)