我想将我的apk上传到谷歌播放商店.但它显示我这样的错误.
**You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play**
Run Code Online (Sandbox Code Playgroud)
而且我搜索了这个,我收到了更改在museast.xml中修改android:debuggable ="false"的建议.
我这样改变了
manifast.xml
<application
android:allowBackup="true"
android:debuggable="false"
android:icon="@mipmap/ic_launcher"
android:label="Concall"
android:screenOrientation="portrait"
android:theme="@style/AppTheme" >
Run Code Online (Sandbox Code Playgroud)
在我的build.grable(模块)
android {
buildTypes {
debug {
debuggable false
}
}
Run Code Online (Sandbox Code Playgroud)
1.是否足以将Apk上传到谷歌游戏商店?
2.如果我从我的项目文件夹(app >> build >>输出>> apk >> apk-debug.apk)中获取apk后这个更改后它将能够在谷歌播放商店上传?
我需要知道这件事事先谢谢.
我需要一些帮助来从 Json 字符串中删除反斜杠。
这是我从服务器端获得的响应。
"response":"{\"time_zone\":\"\",\"session_token\":\"abcdefgHijklomopqrstuvwxyz\",\"user_login\":\"abc\",\"user_profile_img\":\"http://jhjhjhj.org/system/photos/62/medium/images.jpg?1462446436\",\"success\":\"0\",\"org_admin\":\"\",\"user_id\":\"62\",\"user_org_id\":\"101\",\"phone_mobile\":\"510-427-9639\",\"user_email\":\"abc@pdmoffice.com\"}"}
Run Code Online (Sandbox Code Playgroud)
我为从这个字符串中删除反斜杠所做的
result.replaceAll("\\","");
比之后它会给我这个不是 Json 格式的字符串。
{"response":"{"time_zone":"","session_token":"nskfndkjfsfsdffjsdfd","user_login":"newoff2","user_profile_img":"http://absdds.org/system/photos/62/medium/images.jpg?1462446436","success":"0","org_admin":"","user_id":"62","user_org_id":"101","phone_mobile":"510-427-9639","user_email":"hjhjh@pdmoffice.com"}"}
Run Code Online (Sandbox Code Playgroud)
它给我解释
org.json.JSONException: Unterminated object at character 17 of
{"response":"{"time_zone":"","session_token":"kjshhdscncnxzcxclx","user_login":"newoff2","user_profile_img":"http://abcd.org/system/photos/62/medium/images.jpg?1462446436","success":"0","org_admin":"","user_id":"62","user_org_id":"101","phone_mobile":"510-427-9898","user_email":"sdgas@pdmoffice.com"}"}
Run Code Online (Sandbox Code Playgroud)
如何使用正确的 Json 格式删除此反斜杠?
提前致谢
我正在尝试将图像从图库和相机上传到服务器。当我从图库中选择图像上传到服务器时,它的工作 Perfactly。但是当我选择相机捕获的图像上传到服务器时,它崩溃并显示错误。
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference
Run Code Online (Sandbox Code Playgroud)
在 OnActivityResult。
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == PICK_IMAGE && resultCode == RESULT_OK
&& null != data) {
Uri selectedImage = data.getData();
String[] filePathColumn = { MediaStore.Images.Media.DATA };
Cursor cursor = getContentResolver().query(selectedImage,
filePathColumn, null, null, null);
cursor.moveToFirst();
int columnIndex = cursor.getColumnIndex(filePathColumn[0]);
String picturePath = cursor.getString(columnIndex);
cursor.close();
decodeFile(picturePath);
new ImageUploadTask().execute();
}else {
Toast.makeText(getApplicationContext(), "User Canceled",
Toast.LENGTH_LONG).show(); …Run Code Online (Sandbox Code Playgroud) 过去两天我一直在尝试生成存档。我已经创建了反应本机项目。已在设备上成功运行。但是当我尝试生成存档以在试飞时上传时。它给了我错误。
我的RN版本是0.64,Xcode 12.5。
这是我的 pod 文件:
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
require_relative '../node_modules/react-native-unimodules/cocoapods.rb'
platform :ios, '11.0'
target 'XXXX' do
use_unimodules!
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => false
)
target 'XXXXXTests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
use_flipper!({ 'Flipper-Folly' …Run Code Online (Sandbox Code Playgroud) android ×3
java ×2
upload ×2
apk ×1
backslash ×1
frameworks ×1
google-play ×1
image ×1
ios ×1
json ×1
parsing ×1
react-native ×1
server ×1