我在Google Play上有一个应用程序,今天我收到了Google的一封邮件说:
Google Play警告:您正在使用X509TrustManager的不安全实施
它说明了SSL证书问题以及解决问题的方法.
因为好奇,我问这个问题,
更多细节:
我的应用程序是使用Appcelerator Titanium构建的,google说这个实现是在ti.modules.titanium.network.NonValidatingTrustManager;.我确信我的代码中从未使用过这样的类.
android appcelerator android-security appcelerator-titanium trustmanager
有没有办法从编译的 .apk 使用 Appcelerator 创建的代码访问 .js 文件?我丢失了其中一个项目的源代码,现在只有 .apk 文件,并且不想重写整个代码。预先感谢
设置/问题
我为Titanium创建了一个自定义Android模块,以在Ti中显示Gif动画.模块源代码可以在这里找到:https: //github.com/m1ga/com.miga.gifview
实际模块工作正常,但当我使用它与第二个模块(具有相同的问题)时,我收到以下错误:
java.util.zip.ZipException:重复条目:org/appcelerator/titanium/gen/bindings.json
问题出在gifimageview.jar文件中:
我的两个模块在/ gen文件夹中都有一个bindings.json文件,它包含与bindings/gifview.json相同的信息.因此,如果我在一个模块中手动删除它,我可以使用两个模块(因为现在只有一个bindings.json).
题
如何建议编译器不要创建此文件或更改名称?当我编译模块时,ant我在输出中看到这个:
compile:
[javac] Compiling 3 source files to /home/miga/dev/ti.gif/android/build/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] Note: [KrollBindingGen] Running Kroll binding generator.
[javac] Note: [KrollBindingGen] Succesfully loaded existing binding data: /home/miga/dev/ti.gif/android/build/classes/org/appcelerator/titanium/gen/bindings.json
[javac] Note: [KrollBindingGen] Found binding for proxy GifView
[javac] Note: [KrollBindingGen] Found binding for module Tigifview
[javac] Note: [KrollBindingGen] Generating JSON: file:/home/miga/dev/ti.gif/android/build/classes/org/appcelerator/titanium/gen/bindings.json
[copy] Copying 1 file to /home/miga/dev/ti.gif/android/build/classes
Run Code Online (Sandbox Code Playgroud)
它正在创建bindings.json …
我收到了错误
[ERROR] : message = "Publish or manage permissions are not permitted to be requested with read permissions.";
Run Code Online (Sandbox Code Playgroud)
当我点击我的应用程序登录Facebook时.我的同事怎么没有.相同的代码,相同的模块等
Appcelerator Studio, build: 4.5.0.201602170821
(c) Copyright 2012-2014 by Appcelerator, Inc. All rights reserved.
Build: jenkins-appcelerator-rcp-master-340 (origin/master)
Date: 17 February 2016, 08:22:10
Run Code Online (Sandbox Code Playgroud)
版本信息
# ti --version
5.0.6
# appc --version
5.2.0
Run Code Online (Sandbox Code Playgroud)
请帮忙.我正在尝试在appcelerator上构建iOS 9.2.
谢谢
我有一张钛制的桌子,我已经添加了3排.在一个场景中,我从表中删除了第二行table.deleteRow(index),在一些过程之后,我需要在该索引处添加一行.
任何人都可以告诉我如何在特定索引处添加一行.
我想允许我的用户打开我们的应用程序(如果已安装,否则重定向到App Store应用程序页面),每当用户点击我们网站的网址时.
我发现Universal Links是从iOS-9开始实现上述要求的一种方式.我也知道Web服务器和Apple Developer门户要涵盖的要点.
唯一的问题是如何在Appcelerator Titanium app中启用Associated Domains?
提前感谢任何线索或帮助.
我在Windows 7上安装Appcelerator工作室时遇到问题.我在尝试创建新的移动项目(Alloy项目)时遇到以下错误,并在Android设备上运行相同的操作.适用于移动网络.
[错误]:找不到有效的Android SDK目标.
[错误]:请从Android SDK Manager下载Android SDK目标API级别23或更高版本,然后重试.
android SDK已经到位,并已正确引用它.那里仍然没有运气.
请查找平台细节
Appcelerator Studio版本:4.5
Titanium SDK:5.2.0GA
操作系统:Windows 7(64位)
任何帮助都感激不尽.
我有一个应用程序去年在早期版本的sdk上工作正常,但现在Titanium SDK 5.2.2.GA将找不到iOS设备.我尝试清理有关appcelerator的所有内容并重新安装但没有运气.我还尝试安装node-ios-device作为全局包和钛sdk 5.2.2文件夹.我还可以做些什么?我收到以下错误:
2016-05-11T09:34:54.590Z | DEBUG | [PLUGIN-LOAD] 0ms /Users/adi/.appcelerator/install/5.2.2/package/appc.js
(node:2212) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
2016-05-11T09:34:54.651Z | DEBUG | [PLUGIN-LOAD] 61ms /Users/adi/.appcelerator/install/5.2.2/package/node_modules/appc-cli-titanium/appc.js
2016-05-11T09:34:54.651Z | DEBUG | run plugin: /Users/adi/.appcelerator/install/5.2.2/package/node_modules/appc-cli-titanium
2016-05-11T09:34:54.652Z | DEBUG | [PLUGIN-LOAD] 0ms /Users/adi/.appcelerator/install/5.2.2/package/node_modules/arrow/appc.js
2016-05-11T09:34:54.654Z | DEBUG | run plugin: /Users/adi/.appcelerator/install/5.2.2/package/node_modules/arrow
2016-05-11T09:34:54.656Z | TRACE | plugin "arrow" failed its "when" function check, skipping...
2016-05-11T09:34:54.657Z | TRACE …Run Code Online (Sandbox Code Playgroud) 嗨,我正在为 Titanium 创建一个 Android 和 iOS 模块,它有一个 sendLog 方法,该方法将一些任意 JSON 数据发送到服务器,如果它与某些预定义的过滤器匹配,则返回一个 URL。URL 应该在带有 webview 的模式对话框中打开。
我编写了本机 iOS 和 Android 库,并将它们包装为 Titanium 模块。在 iOS 上一切正常,但在 Android 上我无法打开对话框(请参阅下面的错误堆栈跟踪)。现在有一条日志消息总是为了测试目的而触发相同的网页。在 Android 上,它只是默默地失败。
var mupets = require("be.iminds.mupets");
mupets.initialize("wappr", "http://tocker.iminds.be:3000/log/report.json", 1, 100, 3);
var esmLog = {
bar: "foo"
};
mupets.sendLog("es-test-01",JSON.stringify(esmLog));
Run Code Online (Sandbox Code Playgroud)
在这段代码之后(最多大约 10 秒后),模块应该显示一个带有以下网页的本机对话框:http : //tocker.iminds.be : 3000/es/sheets/test-01/index.html
相反,这是我一直得到的错误:
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
at android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1411)
at android.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1429)
at android.app.BackStackRecord.commitInternal(BackStackRecord.java:687)
at android.app.BackStackRecord.commit(BackStackRecord.java:663)
at android.app.DialogFragment.show(DialogFragment.java:256)
at be.iminds.mupets_client_android.logging.plugins.OutHttp.getEsm(OutHttp.java:122)
at be.iminds.mupets_client_android.logging.plugins.OutHttp$1.success(OutHttp.java:78)
at …Run Code Online (Sandbox Code Playgroud) android module appcelerator dialogfragment appcelerator-titanium
我试图使用Alloy Appcelerator的Google vision API v1
我创建了一个请求HTTPClient并调用API https://vision.googleapis.com/v1/images:annotate?key=MY_APP_KEY
但我得到谷歌的响应文本:
{
error = {
code = 400;
details = (
{
"@type" = "type.googleapis.com/google.rpc.BadRequest";
fieldViolations = ({
description = "Invalid JSON payload received. Unknown name \"request\": Cannot bind query parameter. Field 'request' could not be found in request message.";
});
}
);
message = "Invalid JSON payload received. Unknown name \"request\": Cannot bind query parameter. Field 'request' could not be found in request message.";
status = "INVALID_ARGUMENT";
};
Run Code Online (Sandbox Code Playgroud)
}
我的代码使用Alloy的HTTP请求
var requests …Run Code Online (Sandbox Code Playgroud) appcelerator ×10
android ×4
ios ×2
module ×2
apk ×1
decompiler ×1
facebook ×1
google-api ×1
java ×1
titanium ×1
trustmanager ×1