I am working on an Android project that needs three versions of the same application (for example: Admin version, User version, Custom version). I have already created a Google-App-Engine endpoints backend in the User version of the app. I have to start working on the other two versions now and I want to connect these two versions to the backend I created in the User version. I have tried finding the answer to this on the internet but I haven't been successful in doing so. I believe it is possible to connect the other versions of the app to the backend by importing the endpoint libraries from the cloud into the android projects somehow but I haven't been able to find a way to do so yet. I did come across a way to import an existing module in the Android project but if I do that, then any time when I make changes to the backend in the "User" version, I will have to re-import the module in other versions of the app. I am so lost and confused.

我正在开发一个Android项目,需要同一个应用程序的三个版本(例如:管理员版本,用户版本,自定义版本)。我已经在应用的用户版本中创建了Google-App-Engine端点后端。我现在必须开始处理其他两个版本,我想将这两个版本连接到我在User版本中创建的后端。我试过在互联网上找到答案,但我没有成功。我相信可以将应用程序的其他版本连接到后端,方法是将端点库从云端导入到android项目中,但我还没有找到办法。我确实遇到过在Android项目中导入现有模块的方法,但如果我这样做,那么每当我在“用户”版本中对后端进行更改时,我将不得不重新导入其他版本的模块该应用程序。我很迷茫和迷茫。

Any help will be deeply appreciated.

任何帮助将深表感谢。

Thank you!

谢谢!

2 个解决方案

#1


-1

Are all of your Android applications in the same Android Studio project? If so I think you might be able to just add compile project(path: ':{yourBackendModuleGoesHere}', configuration: 'android-endpoints') to each of your Android apps build.gradle.

您的所有Android应用程序都在同一个Android Studio项目中吗?如果是这样,我认为你可能只需要为你的每个Android应用build.gradle添加编译项目(路径:':{yourBackendModuleGoesHere}',配置:'android-endpoints')。

You could probably also make it work even if your backend is in a separate AndroidStudio project as long as they're part of the same gradle build.

即使你的后端在一个单独的AndroidStudio项目中,你也可以使它工作,只要它们是同一个gradle构建的一部分。

更多相关文章

  1. 如何将Maven添加到现有的IntelliJ Android项目中
  2. Thrift项目Server端开发流程
  3. 快速排序Java版本
  4. Jeecg-Boot 2.0.1 版本发布,前后端分离快速开发平台
  5. [java混淆器问题] 如何让web项目的class文件不能被反编译,又能在w
  6. java socket项目打包成可运行的JAR包!!!!!
  7. 阿里云服务器上部署java项目(安装jdk,tomcat)
  8. JAVASCRIPT实现翻页保存已勾选的项目
  9. Blue Pelican Java项目“Masking Telemetry Data”;编译但没有运

随机推荐

  1. 【python】虚拟环境搭建
  2. 美国终于挥舞着霸权大棒向程序员动手了
  3. 【python】使用pip提示ModuleNotFoundErr
  4. JavaScript的前景与未来[每日前端夜话0x9
  5. 回到基础:JavaScript API[每日前端夜话0xA
  6. C语言学习心得(六)
  7. 什么是Deno,它与Node.js有什么不同?[每日前
  8. 成为优秀程序员的101条准则[每日前端夜话
  9. 假装网络工程师28——MPLS跨AS通信option
  10. 如何创建高可用性系统[每日前端夜话0xA2]