小编Smi*_*ngM的帖子

在开发者控制台中将Android目标Api Level 23降级为22

我上传了一个新的beta测试版本,其Android目标api级别为23.在22之前我不知道,对于API级别23,有许多关于权限的更改.我意识到在使用api级别23上传新的beta测试版本之后.所以我构建了一个新的版本,它再次使用api level 22来有更多的时间来使我的应用程序适应api level 23.

但每次现在当我上传一个api级别为22的版本时,我在开发者控制台中出现错误"app无法保存",没有关于错误的更多信息,我无法上传它.当我编译具有目标API级别23的新版本时,可以再次上载.我认为问题是降级到api 22级.

是否属实,一旦您在封闭式Beta版测试中发布API Level 23版本,您就无法降级回目标API级别22?

谢谢你的帮助!

Smilingm

android android-permissions android-6.0-marshmallow android-api-levels

10
推荐指数
1
解决办法
4866
查看次数

将firebase auth与google app引擎云端点集成

有人可以指定(使用一些示例代码)如何验证google云端点中的firebase令牌?最近提出的问题根本没有澄清(如何将firebase身份验证与Google应用引擎端点集成)

端点中的Google身份验证是通过将用户参数添加到端点来自动完成的.可以使用facebook图api在云端点验证Facebook令牌,如下所示:

    @ApiMethod(name = "endpoint.addUser", httpMethod = HttpMethod.POST)
        public ResultObject addUser(HttpServletRequest request, User pUser) throws OAuthRequestException {
    String token = request.getHeader("Authorization");
    String graphUrl  = "https://graph.facebook.com/v2.6/me?fields=id,name,email&access_token=" + token;

    URL u = new URL(g);
    URLConnection c = u.openConnection();
    BufferedReader in = new BufferedReader(new InputStreamReader(c.getInputStream()));
    String inputLine;
    StringBuffer b = new StringBuffer();
    while ((inputLine = in.readLine()) != null){
             b.append(inputLine + "\n");            
    }
    in.close();
    graph = b.toString();
    JSONObject json = new JSONObject(graph);

    facebookId = json.getString("id");
    email = json.getString("email");
    //...
}
Run Code Online (Sandbox Code Playgroud)

firebase令牌的验证是否像facebook令牌一样简单?是否可以从firebase令牌中检索电子邮件?

google-app-engine android firebase google-cloud-endpoints firebase-authentication

9
推荐指数
1
解决办法
1418
查看次数

在启用proguard的情况下在发布模式下编译Android应用程序时出现问题

我试图用proguard编译我的Android应用程序,但我得到以下错误,不知道如何解决它们.有人有想法吗?在调试模式下,一切都很好......

Note: duplicate definition of library class [org.apache.http.conn.scheme.HostNameResolver]
Note: duplicate definition of library class [org.apache.http.conn.scheme.SocketFactory]
Note: duplicate definition of library class [org.apache.http.conn.ConnectTimeoutException]
Note: duplicate definition of library class [org.apache.http.params.HttpParams]
Note: duplicate definition of library class [android.net.http.SslCertificate$DName]
Note: duplicate definition of library class [android.net.http.SslError]
Note: duplicate definition of library class [android.net.http.SslCertificate]
    Note: android.support.v4.app.NotificationCompatJellybean accesses a declared field 'title' dynamically
          Maybe this is program field 'android.support.v4.app.NotificationCompat$Action { java.lang.CharSequence title; }'
          Maybe this is program field 'android.support.v7.appcompat.R$attr { int title; }'
          Maybe this …
Run Code Online (Sandbox Code Playgroud)

android proguard android-studio android-proguard

5
推荐指数
1
解决办法
9848
查看次数