public class Globals {
// TODO IMPORTANT CONFIG CHANGES
// ** IMPORTANT CONFIGURATION
private static String serverRealUrl = "http://www.myserver.com/api"; //Real Server configuration
private static String serverLocalUrl = "http://localhost:80/api"; //local configuration
/**
* Substitute you own sender ID here. This is the project number you got
* from the API Console, as described in "Getting Started."
*/
public static String SENDER_ID = "000000";
public static String base64EncodedPublicKey = "xxxxx";
//DEBUG MODO
public static boolean debugModeBoolean = true; //USE in DEBUG MODE …Run Code Online (Sandbox Code Playgroud) 我是JointJS的新手,我需要使用JointJS创建自定义形状,我尝试使用Rectangle创建钻石形状,使其高度和宽度相同,然后旋转45度,如下所示,
var diamond = new joint.shapes.basic.Rect({
position: { x: 100, y: 100 },
size: { width: 100, height: 100 },
attrs: { diamond: { width: 100, height: 30 } }
});
diamond.attr({
rect: { fill: '#cccccc', 'stroke-width': 2, stroke: 'black' },
text: {
text: 'Diamond', fill: '#3498DB',
'font-size': 18, 'font-weight': 'bold',
'font-variant': 'small-caps',
'text-transform': 'capitalize'
}
});
diamond.rotate(45);
Run Code Online (Sandbox Code Playgroud)
然而,矩形内部的文本也会旋转,任何想法我怎么能继续....我还需要创建带标签的六边形...任何帮助将不胜感激....
提前致谢,
涅茧利
在 32 位和 64 位问题后,我无法在 Play 商店更新我的 apk。我收到这样的错误。我尝试了一切。拆分 APK,包。但是每次我都会遇到以下错误。此版本不符合 Google Play 64 位要求
以下 APK 或 App Bundle 适用于 64 位设备,但它们只有 32 位本机代码:174。
在您的应用中包含 64 位和 32 位本机代码。
这里是我的毕业..
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "test.com"
minSdkVersion 16
targetSdkVersion 28
versionCode 175
versionName "4.9.6.0"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
// ndk { abiFilters 'armeabi-v7a', 'x86' }
ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
useLibrary 'org.apache.http.legacy'
buildTypes {
release …Run Code Online (Sandbox Code Playgroud) 我正在尝试在服务器上的JSON数组下面发布。
{
"order": [{
"orderid": "39",
"dishid": "54",
"quantity": "4",
"userid":"2"
},{
"orderid": "39",
"dishid": "54",
"quantity": "4",
"userid":"2"
}]
}
Run Code Online (Sandbox Code Playgroud)
我在下面使用这个:
private void updateOreder() {
M.showLoadingDialog(GetDishies.this);
UpdateAPI mCommentsAPI = APIService.createService(UpdateAPI.class);
mCommentsAPI.updateorder(jsonObject, new Callback<String>() {
@Override
public void success(String s, Response response) {
M.hideLoadingDialog();
Log.e("ssss",s.toString());
Log.e("ssss", response.getReason());
}
@Override
public void failure(RetrofitError error) {
M.hideLoadingDialog();
Log.e("error",error.toString());
}
});
}
Run Code Online (Sandbox Code Playgroud)
我得到以下错误:
retrofit.RetrofitError: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 2 column 6 path $
Run Code Online (Sandbox Code Playgroud)
updateApi代码:
@POST("updateorder.php")
void updateorder(@Body …Run Code Online (Sandbox Code Playgroud)