Coder Social home page Coder Social logo

javaporject_at_android_studio_advanced's Introduction

Advanced --- Pure JAVA @ Android

這個方式可以在專案中切換編譯Android App 或是 純Java

開一個新專案!

N|Solid

確認開好了

N|Solid

右鍵 新增一個 Module

N|Solid

選擇Java Library

N|Solid

輸入必須的資訊

Library name部分需要注意 這攸關後面編譯出來的jar檔名稱

N|Solid

看一下setting.gradle確認新增了

N|Solid

把範例FirstJava的內容補上

N|Solid

編輯Run組態設定檔1

加入Java的單獨支援

N|Solid

編輯Run組態設定檔2

新增Application

N|Solid

編輯Run組態設定檔3 : 完整packagename名稱

填入Main Class 的完整packagename名稱 (貼心的有提示)

編輯Run組態設定檔4 : Use classpath of module

記得填入 Use classpath of module (這是要指定的)

N|Solid

編輯Run組態設定檔5 : 支援輸出jar

N|Solid N|Solid N|Solid N|Solid

切到JAVA設定檔嘗試執行看看

N|Solid

執行JAVA前跑的gradle情形

N|Solid

執行結果

N|Solid

jar檔執行結果

N|Solid

javaporject_at_android_studio_advanced's People

Watchers

James Cloos avatar Neo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.