ans*_*hul 4 android android-studio android-module
我为我的 android 应用程序创建了三个模块,即应用程序、域和数据。
我错误地将域和数据模块创建为 android 模块而不是 Java 模块。现在我想将它们替换为 Java 模块。
谁能建议我如何实现这一目标?
你需要改变:
apply plugin: 'com.android.library'
Run Code Online (Sandbox Code Playgroud)
到
apply plugin: 'java'
Run Code Online (Sandbox Code Playgroud)
并在其后添加以下行:
sourceCompatibility= 1.7
targetCompatibility= 1.7
Run Code Online (Sandbox Code Playgroud)
在你的 build.gradle android 库模块中。