Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/334.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用Flex移动应用程序进行改装_Java_Android_Apache Flex_Air Native Extension_Retrofit - Fatal编程技术网

Java 使用Flex移动应用程序进行改装

Java 使用Flex移动应用程序进行改装,java,android,apache-flex,air-native-extension,retrofit,Java,Android,Apache Flex,Air Native Extension,Retrofit,我正在为Android开发一款Flex移动应用程序,带有本机扩展。我试图在Java代码中使用改型,但是改型调用失败了 我定义了以下接口: public interface GitHubService { @GET("/repos/{owner}/{repo}/contributors") List<Contributor> contributors( @Path("owner") String owner, @Path("repo") String re

我正在为Android开发一款Flex移动应用程序,带有本机扩展。我试图在Java代码中使用改型,但是改型调用失败了

我定义了以下接口:

public interface GitHubService {

@GET("/repos/{owner}/{repo}/contributors")
  List<Contributor> contributors(
      @Path("owner") String owner,
      @Path("repo") String repo
  );
}
从所有这些,我期待看到一个列表打印在LogCat;相反,我得到了以下异常:

FATAL EXCEPTION: AsyncTask #1
java.lang.RuntimeException: An error occured while executing doInBackground()
...
Caused by: java.lang.IllegalStateException: No Retrofit annotation found on parameter 1 of contributors

有没有办法在Flex Mobile的本机扩展中进行改造?

这目前是不可能的。ADT在编译dalvik的过程中从java类中剥离所有注释。

您好,您解决了这个问题吗?因为我面临同样的问题?我能找到的唯一解决方案是重写Java代码,使其不使用注释(任何注释,而不仅仅是改装)。如果其他人想解决这个问题,我已经在Adobe上记录了一个错误:
FATAL EXCEPTION: AsyncTask #1
java.lang.RuntimeException: An error occured while executing doInBackground()
...
Caused by: java.lang.IllegalStateException: No Retrofit annotation found on parameter 1 of contributors