简体   繁体   English

是否可以在不使用SDK的情况下构建android apk

[英]Is it possible to build an android apk without using SDK

I'm pushing app folder and gradle files to git. 我正在将app文件夹和gradle文件推送到git。 The purpose is to build an apk file without IDE. 目的是在不使用IDE的情况下构建apk文件。 It is achieved by 它是通过
- installing gradle -安装gradle
- executing gradle commands from terminal -从终端执行gradle命令

But it requires the local.properties file which includes the sdk path of my local system. 但是它需要local.properties文件,其中包含本地系统的sdk路径。

Is there any way to build an apk or run gradle without involving sdk 有没有办法建立一个apk或运行gradle而又不涉及sdk

Docs says Docs说

Applications are usually developed in Java programming language using the Android software development kit (SDK), but other development environments are also available. 应用程序通常使用Android软件开发套件(SDK)以Java编程语言进行开发,但也可以使用其他开发环境。

what are the other environments? 还有哪些其他环境? How do I use it? 如何使用?

the development of an Android application requires an SDK with Java, for iOS apps an iOS SDK with Swift, and for MS Windows the .NET Framework SDK with .NET. 开发Android应用程序需要Java的SDK;对于iOS应用程序,需要Swift的iOS SDK;对于MS Windows,则需要具有.NET的.NET Framework SDK。 There are also SDKs that are installed in apps to provide analytics and data about activity. 应用程序中还安装了SDK,以提供有关活动的分析和数据。 Prominent examples include Google, InMobi and Facebook. 著名的例子包括Google,InMobi和Facebook。

If I've to build an apk without IDE, I need the source code and gradle software. 如果必须在不使用IDE的情况下构建apk,则需要源代码和gradle软件。 Do I need sdk as a mandatory? 我是否需要sdk作为必需项? or could it be replaced? 还是可以更换? If yes How? 如果是,如何?

I've searched for the same, but guess it is not possible without sdk. 我已经搜索了相同的内容,但猜想如果没有sdk,这是不可能的。 Am I wrong? 我错了吗? Kindly Help. 请帮助。

You can't create android apk file without having android sdk. 如果没有android sdk,则无法创建android apk文件。 Install the android studio from official google site. 从Google官方网站安装android studio。

It is not possible to build an Android app without using SDK. 如果不使用SDK,则无法构建Android应用。 Take a look at this answer . 看看这个答案 If you want to build an app without using an IDE though you can read about it for example here and here . 如果您想在不使用IDE的情况下构建应用程序,尽管可以在此处此处阅读有关示例的信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM