当前位置: 首页 > news >正文

做一个论坛网站需要多少钱app开发软件怎么做

做一个论坛网站需要多少钱,app开发软件怎么做,镇江网站建设平台,上饶网站建设srsem前言 我们在日常开发中#xff0c;经常会用到第三方开源的库文件#xff0c;有的来自JCenter#xff0c;Maven Central#xff0c;google等。但是随着JCenter的弃用#xff0c;现在用的最多的还是Maven Central#xff0c;google。今天我们就自己亲自发布一个依赖。 现…前言  我们在日常开发中经常会用到第三方开源的库文件有的来自JCenterMaven Centralgoogle等。但是随着JCenter的弃用现在用的最多的还是Maven Centralgoogle。今天我们就自己亲自发布一个依赖。 现在网络上有很多的文章是关于如何发布Android依赖到 Jitpack的但是大多数都是比较早的而且随着gradle版本的更新迭代很多旧的插件已经不支持使用了。比如旧版本的 gradle 可以使用com.github.dcendents:android-maven-gradle-plugin:2.1,但是现在gradle 版本到 7.0 之后这些插件就不适用了而且坑很多我创建了多个项目进行尝试最终都失败了。也根据网络上的资料配置了jitpack.yml 文件去指定在 Jitpack 需要编译的Jdk版本可是还是失败。后来也参照了Jitpack官方文档以及官方项目jitpack.io还是失败因为我发现Jitpack官方项目都是好几年前的版本根本无法适用于gradle 版本到7.0 之后的这一点还是希望Jitpack官方可以随时更新维护一下项目和使用文档才好。 废话就不多说下面开始我们创建自己的发布依赖之旅吧。 创建项目 首先打开AS我们创建一个项目这个很简单如下图所示 为了后面演示方便我这里保留了lib模块以及app模块。 项目创建完毕后就开始准备工作了第一步就是要检查我的gradle版本以及gradle插件版本以及sdk 的版本。 检查gradle版本 1、我的gradle版本是 gradle-7.5项目根目录-gradle-wrapper-gradle-wrapper.properties distributionUrlhttps\://services.gradle.org/distributions/gradle-7.5-bin.zip2、gradle 的插件版本 (项目根目录-build.gradle)classpath com.android.tools.build:gradle:7.4.23、jdk 采用 1.8.0_221 这个我们本地的不影响 jitpack 编译到时候通过 jitpack.yml 去指定编译的 jdk 版本就可以了提示jitpack 默认是采用 1.8 的jdk进行编译的4、Android Studio Giraffe | 2022.3.1 Patch 1 Build #AI-223.8836.35.2231.10671973, built on August 17, 2023 Runtime version: 17.0.60-17.0.6b829.9-10027231 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 13.5.1 GC: G1 Young Generation, G1 Old Generation Memory: 1280M Cores: 8 Metal Rendering is ON Registry:external.system.auto.import.disabledtruedebugger.new.tool.window.layouttrueide.text.editor.with.preview.show.floating.toolbarfalseide.experimental.uitrue注意事项注意gradle版本Android studio版本以及gradle 插件版本要相对应具体版本对应关系可以参考Google的android开发平台的Android Gradle 插件版本说明。对照对应关系表修改三者的对应关系。如下图所示 Android Gradle 插件版本所需的 Gradle 版本 Android Gradle 插件和 Android Studio 兼容性 依赖库的配置 检查完本地的gradle相关的版本对应关系后下面我们就可以开始配置依赖库。注意这里的依赖库shapeimageviewlib是我事先已经完善好了的功能模块这里就以shapeimageviewlib来做依赖配置讲解。 在做依赖库的配置前需要满足一下俩个要求。 1、需要有 jitpack 账号可以去jitpack官网自行注册 2、需要有 github 账号 或者是 码云 gitee 账号可以去码云titee或者github自行注册 做为一个开发者我想大家都有GitHubGitee以及Jitpick账户吧如果没有赶快去注册一个注册流程很简单这里就不做解说。 一配置shapeimageviewlib的build.gradle 打开shapeimageviewlib 目录下的 build.gradle 文件并在 plugins{} 标签中加入 id maven-publish plugins {id com.android.libraryid maven-publish } 然后加入打包源码的task,如下所示 task generateSourcesJar(type: Jar){from android.sourceSets.main.java.srcDirsclassifier sources } 默认情况下Gradle将每24小时刷新一次快照依赖项。 如果版本以-SNAPSHOT后缀结尾Gradle将自动将依赖项识别为快照。例如: dependencies {compile group: aGroup, name: anArtifact, version: 1.0-SNAPSHOT } 但是如果依赖项的版本字符串不以-SNAPSHOT结尾则需要告知Gradle它是带有changing参数的快照。例如: dependencies {compile group: aGroup, name: anArtifact, version: 1.0, changing: true } 覆盖Gradle下载快照的频率 覆盖默认的24小时策略的唯一机制是将Gradle配置为更频繁地使依赖项缓存无效(并因此下载新的SNAPSHOT)。例如: configurations.all {resolutionStrategy.cacheChangingModulesFor 0, seconds } 动态版本化的依赖项缓存将需要单独配置 如果您使用任何动态版本例如: dependencies {compile group: aGroup, name: anArtifact, version: 1., changing: true } 您需要分别为这些依赖项配置缓存无效如下所示: configurations.all {resolutionStrategy.cacheChangingModulesFor 0, secondsresolutionStrategy.cacheDynamicVersionsFor 0, seconds } 建立绩效影响: 需要注意的一件事是缓存依赖项的时间越短Gradle检索该 Artifact 的频率就越高。如果完全禁用了缓存则它将在每次执行期间获取依赖项。 关于maven - 有关快照的Gradle缓存问题的解决方案我在Stack Overflow上找到一个类似的问题 maven - Solution around gradle cache issues with snapshots? - Stack Overflow 至于是否使用快照自己可以更具实际情况而定。 下面就是最核心的配置了也就是发布上传配置。 二配置上传publishing 同样操作我们需要在shapeimageviewlib的build.gradle配置如下 afterEvaluate {publishing {publications {// Creates a Maven publication called release.group com.github.hirezyversion 1.0.0//发布release版本release(MavenPublication) {// Applies the component for the release build variant.from components.release//groupId通常是自己的gitee或者GitHub的账户地址groupId group//artifactId通常是指待发布项目的名称也就是别名artifactId ShapeImageView//version通常是指待发布项目的版本号这里是写死的通常我们取项目versionNameversion version}//发布debug版本debug(MavenPublication) {// Applies the component for the release build variant.from components.debuggroupId groupartifactId ShapeImageView-debugversion version}}} } 注意网上有博主说直接把afterEvaluate模块放在android{ //...todo}模块这里我想特别提醒一下不能放在android{ //...todo}模块切记只能放在根模块就是和android{ //...todo}同级。 本以为到了这里就万事大吉了但是后来发布后遇到了下面的问题 仔细分析报错日志发现报了如下俩个错误 1:Gradle publishToMavenLocal task not found. Please add the maven-publish or maven plugin. 2: * What went wrong: A problem occurred configuring root project ShapeImageView.Could not resolve all files for configuration :classpath. Could not resolve com.android.tools.build:gradle:7.4.2.Required by:project : No matching variant of com.android.tools.build:gradle:7.4.2 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute org.gradle.plugin.api-version with value 7.5 but:- Variant apiElements capability com.android.tools.build:gradle:7.4.2 declares a library, packaged as a jar, and its dependencies declared externally:- Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8- Other compatible attribute:- Doesnt say anything about org.gradle.plugin.api-version (required 7.5)- Variant javadocElements capability com.android.tools.build:gradle:7.4.2 declares a runtime of a component, and its dependencies declared externally:- Incompatible because this component declares documentation and the consumer needed a library- Other compatible attributes:- Doesnt say anything about its target Java version (required compatibility with Java 8)- Doesnt say anything about its elements (required them packaged as a jar)- Doesnt say anything about org.gradle.plugin.api-version (required 7.5)- Variant runtimeElements capability com.android.tools.build:gradle:7.4.2 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:- Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8- Other compatible attribute:- Doesnt say anything about org.gradle.plugin.api-version (required 7.5)- Variant sourcesElements capability com.android.tools.build:gradle:7.4.2 declares a runtime of a component, and its dependencies declared externally:- Incompatible because this component declares documentation and the consumer needed a library- Other compatible attributes:- Doesnt say anything about its target Java version (required compatibility with Java 8)- Doesnt say anything about its elements (required them packaged as a jar)- Doesnt say anything about org.gradle.plugin.api-version (required 7.5)* Try:Run with --stacktrace option to get the stack trace.Run with --info or --debug option to get more log output.Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 533ms Build tool exit code: 0 Looking for artifacts... Picked up JAVA_TOOL_OPTIONS: -Dfile.encodingUTF-8 -Dhttps.protocolsTLSv1.2 Picked up JAVA_TOOL_OPTIONS: -Dfile.encodingUTF-8 -Dhttps.protocolsTLSv1.2 Looking for pom.xml in build directory and ~/.m2 2023-09-06T17:54:45.227812499Z Exit code: 0⚠️ ERROR: No build artifacts found 可是我分明已经加入了maven-publish插件为什么会报Gradle publishToMavenLocal task not found。 而且我明明也指定了jdk版本为未java11啊为什么说我是用的是java8了。这真的一度让我怀疑人生不敢在相信Jitpack了。 compileOptions {sourceCompatibility JavaVersion.VERSION_11targetCompatibility JavaVersion.VERSION_11} 可是本本着不服输的想法我再次查阅了jitpack.io文档终于让我找到了解决办法。如下图所 然后我试着加入jitpack.yml文件内容如下 jdk:- openjdk11 before_install:- sdk install java 11.0.10-open- sdk use java 11.0.10-open install:- echo Running a custom install command- ./gradlew clean install -xtest env:MYVAR: custom environment variable结果神奇的发现问题2解决了但是问题依然存在。 后来试着在android{ //...todo}模块加入如下指令竟然神奇发现编译竟然通过了 publishing {singleVariant(release)singleVariant(debug)}buildTypes {release {minifyEnabled falseproguardFiles getDefaultProguardFile(proguard-android-optimize.txt), proguard-rules.pro}debug{minifyEnabled falseproguardFiles getDefaultProguardFile(proguard-android-optimize.txt), proguard-rules.pro}} 走到这一步我真的要吐血了甚至有冲动不想在使用Jitpick了在这里真心希望jitpack团队可以及时更新文档更新simple。 三将代码同步到 github/gitee上 我们只要按照以下步骤执行命令即可把我们工程上传到GitHub或者gitee上这里不做过多讲解。 echo ”README.md      git init      git add .      git commit -m first commit      git remote add origin gitgithub.com:hirezy/ShapeImageView.git      git push -u origin master 注意 github 现在推送代码是采用了 token 的形式可以去后端生成 token然后去 android studio 等工具使用否则无法提交代码原本的密码账号的形式已经被废弃了。可以参考GitHub不再支持密码验证解决方案SSH免密与Token登录配置讲解的非常详细。 代码同步完成后我们就去创建一个 release 版本如下所示图 这里是我提前已经准备好的一个releases,版本号是v.1.0.0,下面我带大家创建一个新的release版本版本是v1.0.1 四创建releases 创建releases版本前我们需要先创建一个tag.创建tag命令如下 git tag v1.0.1提交这个tag到远程。 git push origin v1.0.1提交成功就会看到下图所示信息提示我们新创建的tag已经成功提交远程仓库 如果你对git的tag操作不熟悉可以参考Git优雅使用git tag操作。 查看远程仓库你会发现远程会多了一个tag,我们只需点击图上圈着的Release按钮就会跳转到创建页面如果非第一次创建可以看到如下页面点击【Draft a new release】按钮去创建一个版本。注意我这里你看见有Release有俩个那是因为我我提交了一个配置文件每当我提交tag到远程github会自动帮我releases出一个对应的版本后面我会给大家分享这个config文件。 当我们点击【Release】按钮,就会来到如下界面 因为不是第一次创建所以点击【Draft a new release】按钮去创建一个版本如下图所示 五如何快速生成releases 上面介绍了,生成releases,出了通过大tag方式来生产releases,还可以通过配置config文件在我们提交本地tag到远程的时候系统自动帮我们快速生成对应版本的releases 怎么做了其实很简单我们只需要在我们的项目的根目录新建这样的文件目录就好了如下图所示 并在release.yml这个文件加入如下内容即可 name: publish release on:push:tags:- *jobs:release:runs-on: ubuntu-latestpermissions:contents: writesteps:- uses: ncipollo/release-actionv1with:generateReleaseNotes: true注意一定要在项目的根目录下的.github/workflows目录下新建release.yml文件并加上面的内容方可自动快速帮我们创建releases. 六将代码关联到 Jitpack生成依赖库。 准备工作完毕后我们直接登陆到Jitpack然后复制我们的项目仓库地址可以是https形式也可以是SSH形式如下图所示 这里我采用ssh方式。复制地址后来到Jitpack在下图所示输入栏输入我们复制的项目地址信息接着点击 【Loop up】 按钮接着可以看到你Github上最新的几个版本在这里我这里是因为我之前上传过所以有这么多分别点击右侧的【Get it】按钮加入没有 loading则多点几次刷网页也可以。 在依次点击【Loop up】 按钮 -》Get it】按钮等待loading介绍即可 编译结束我们就会看到下图所示的结果如果编译成功就会看到log一列对应的版本就是绿色的如果编译失败就会看到log所在列会有红色失败提示我们只需要点击那个像书籍一样的按钮就可以看见相信的编译信息如下图所示 编译日志如下 Build starting... Start: Thu Sep 7 10:34:10 UTC 2023 91be4e2ca99f Git: v1.0.0-0-g9130e5c commit 9130e5cf40ee555c45bf763a07572fc166f2bece Author: hirezy Date: Thu Sep 7 11:29:26 2023 0800rename fileInit SDKMan Found Android manifest Android SDK version: . Build tools: Found gradle Gradle build script Found gradle version: 7.5. Using gradle wrapper Picked up JAVA_TOOL_OPTIONS: -Dfile.encodingUTF-8 -Dhttps.protocolsTLSv1.2 Downloading https://services.gradle.org/distributions/gradle-7.5-bin.zip .10%.20%.30%.40%.50%.60%.70%.80%.90%.100%------------------------------------------------------------ Gradle 7.5 ------------------------------------------------------------Build time: 2022-07-14 12:48:15 UTC Revision: c7db7b958189ad2b0c1472b6fe663e6d654a5103Kotlin: 1.6.21 Groovy: 3.0.10 Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021 JVM: 11.0.2 (Oracle Corporation 11.0.29) OS: Linux 4.14.63-xxxx-std-ipv6-64 amd640m3.920s Picked up JAVA_TOOL_OPTIONS: -Dfile.encodingUTF-8 -Dhttps.protocolsTLSv1.2 openjdk version 11.0.2 2019-01-15 OpenJDK Runtime Environment 18.9 (build 11.0.29) OpenJDK 64-Bit Server VM 18.9 (build 11.0.29, mixed mode) Getting tasks: ./gradlew tasks --all Tasks: publishToMavenLocal, Running: ./gradlew clean -Pgroupcom.github.hirezy -Pversionv1.0.1 -xtest -xlint assemble publishToMavenLocal Checking the license for package Android SDK Build-Tools 30.0.3 in /opt/android-sdk-linux/licenses License for package Android SDK Build-Tools 30.0.3 accepted. Preparing Install Android SDK Build-Tools 30.0.3 (revision: 30.0.3). Install Android SDK Build-Tools 30.0.3 (revision: 30.0.3) ready. Installing Android SDK Build-Tools 30.0.3 in /opt/android-sdk-linux/build-tools/30.0.3 Install Android SDK Build-Tools 30.0.3 (revision: 30.0.3) complete. Install Android SDK Build-Tools 30.0.3 (revision: 30.0.3) finished. Checking the license for package Android SDK Platform 30 in /opt/android-sdk-linux/licenses License for package Android SDK Platform 30 accepted. Preparing Install Android SDK Platform 30 (revision: 3). Install Android SDK Platform 30 (revision: 3) ready. Installing Android SDK Platform 30 in /opt/android-sdk-linux/platforms/android-30 Install Android SDK Platform 30 (revision: 3) complete. Install Android SDK Platform 30 (revision: 3) finished.Task :clean UP-TO-DATETask :app:clean UP-TO-DATETask :shapeimageviewlib:clean UP-TO-DATETask :app:preBuild UP-TO-DATETask :app:preDebugBuild UP-TO-DATETask :shapeimageviewlib:preBuild UP-TO-DATETask :shapeimageviewlib:preDebugBuild UP-TO-DATETask :shapeimageviewlib:preReleaseBuild UP-TO-DATETask :app:preReleaseBuild UP-TO-DATETask :app:mergeDebugNativeDebugMetadata NO-SOURCETask :shapeimageviewlib:compileDebugAidl NO-SOURCETask :app:compileDebugAidl NO-SOURCETask :shapeimageviewlib:packageDebugRenderscript NO-SOURCETask :app:compileDebugRenderscript NO-SOURCE Task :app:dataBindingMergeDependencyArtifactsDebug WARNING: [Processor] Library /home/jitpack/.gradle/caches/modules-2/files-2.1/com.github.JessYanCoding/AndroidAutoSize/v1.2.1/a44df9822e0cb91242358f070ef813714fd81c05/AndroidAutoSize-v1.2.1.aar contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.Example of androidX reference: androidx/fragment/app/FragmentManager$FragmentLifecycleCallbacksExample of support library reference: android/support/v4/app/FragmentManager$FragmentLifecycleCallbacks Task :app:generateDebugResValuesTask :app:generateDebugResourcesTask :shapeimageviewlib:compileDebugRenderscript NO-SOURCETask :shapeimageviewlib:generateDebugResValuesTask :shapeimageviewlib:generateDebugResourcesTask :shapeimageviewlib:packageDebugResourcesTask :app:generateDebugBuildConfigTask :app:javaPreCompileDebugTask :app:mapDebugSourceSetPathsTask :shapeimageviewlib:writeDebugAarMetadataTask :app:createDebugCompatibleScreenManifestsTask :app:mergeDebugResourcesTask :app:checkDebugAarMetadataTask :app:dataBindingGenBaseClassesDebugTask :app:extractDeepLinksDebugTask :shapeimageviewlib:extractDeepLinksDebugTask :shapeimageviewlib:processDebugManifestTask :shapeimageviewlib:compileDebugLibraryResourcesTask :app:processDebugMainManifestTask :app:processDebugManifestTask :shapeimageviewlib:generateDebugBuildConfigTask :shapeimageviewlib:javaPreCompileDebugTask :app:mergeDebugShadersTask :app:compileDebugShaders NO-SOURCETask :app:generateDebugAssets UP-TO-DATETask :shapeimageviewlib:mergeDebugShadersTask :shapeimageviewlib:compileDebugShaders NO-SOURCETask :shapeimageviewlib:generateDebugAssets UP-TO-DATETask :shapeimageviewlib:packageDebugAssetsTask :shapeimageviewlib:parseDebugLocalResourcesTask :app:mergeDebugAssetsTask :app:processDebugManifestForPackageTask :app:compressDebugAssetsTask :app:processDebugJavaRes NO-SOURCETask :shapeimageviewlib:processDebugJavaRes NO-SOURCETask :shapeimageviewlib:bundleLibResDebug NO-SOURCETask :shapeimageviewlib:generateDebugRFileTask :app:checkDebugDuplicateClassesTask :app:processDebugResources Task :shapeimageviewlib:compileDebugJavaWithJavac Task :shapeimageviewlib:bundleLibCompileToJarDebugTask :app:desugarDebugFileDependencies Task :app:compileDebugJavaWithJavac Task :app:mergeDebugJavaResourceTask :shapeimageviewlib:bundleLibRuntimeToJarDebugTask :app:mergeDebugJniLibFoldersTask :app:dexBuilderDebugTask :shapeimageviewlib:mergeDebugJniLibFoldersTask :app:mergeLibDexDebugTask :shapeimageviewlib:mergeDebugNativeLibs NO-SOURCETask :shapeimageviewlib:copyDebugJniLibsProjectOnlyTask :app:mergeProjectDexDebugTask :app:validateSigningDebugTask :app:mergeDebugNativeLibs NO-SOURCETask :app:stripDebugDebugSymbols NO-SOURCETask :app:writeDebugAppMetadataTask :app:writeDebugSigningConfigVersionsTask :shapeimageviewlib:compileReleaseAidl NO-SOURCETask :shapeimageviewlib:mergeReleaseJniLibFoldersTask :shapeimageviewlib:mergeReleaseNativeLibs NO-SOURCETask :shapeimageviewlib:stripReleaseDebugSymbols NO-SOURCETask :shapeimageviewlib:copyReleaseJniLibsProjectAndLocalJarsTask :shapeimageviewlib:compileReleaseRenderscript NO-SOURCETask :shapeimageviewlib:generateReleaseResValuesTask :shapeimageviewlib:extractDeepLinksForAarReleaseTask :shapeimageviewlib:generateReleaseBuildConfigTask :shapeimageviewlib:generateReleaseResourcesTask :shapeimageviewlib:packageReleaseResourcesTask :shapeimageviewlib:parseReleaseLocalResourcesTask :shapeimageviewlib:javaPreCompileReleaseTask :shapeimageviewlib:mergeReleaseShadersTask :shapeimageviewlib:compileReleaseShaders NO-SOURCETask :shapeimageviewlib:generateReleaseAssets UP-TO-DATETask :shapeimageviewlib:processReleaseManifestTask :shapeimageviewlib:packageReleaseAssetsTask :shapeimageviewlib:packageReleaseRenderscript NO-SOURCETask :shapeimageviewlib:prepareLintJarForPublishTask :shapeimageviewlib:prepareReleaseArtProfileTask :shapeimageviewlib:generateReleaseRFileTask :shapeimageviewlib:processReleaseJavaRes NO-SOURCETask :app:mergeExtDexDebugTask :shapeimageviewlib:extractReleaseAnnotations Task :shapeimageviewlib:compileReleaseJavaWithJavac Task :shapeimageviewlib:mergeReleaseGeneratedProguardFilesTask :shapeimageviewlib:mergeReleaseConsumerProguardFilesTask :app:compileReleaseAidl NO-SOURCETask :shapeimageviewlib:writeReleaseAarMetadataTask :shapeimageviewlib:mergeReleaseJavaResourceTask :app:compileReleaseRenderscript NO-SOURCETask :shapeimageviewlib:syncReleaseLibJarsTask :shapeimageviewlib:bundleReleaseLocalLintAarTask :app:dataBindingMergeDependencyArtifactsReleaseTask :app:generateReleaseResValuesTask :app:generateReleaseResourcesTask :app:generateReleaseBuildConfigTask :app:mapReleaseSourceSetPathsTask :app:createReleaseCompatibleScreenManifestsTask :app:extractDeepLinksReleaseTask :shapeimageviewlib:extractDeepLinksReleaseTask :app:checkReleaseAarMetadataTask :app:javaPreCompileReleaseTask :app:processReleaseMainManifestTask :app:processReleaseManifestTask :app:extractProguardFilesTask :shapeimageviewlib:bundleLibResRelease NO-SOURCETask :shapeimageviewlib:bundleLibRuntimeToJarReleaseTask :shapeimageviewlib:bundleLibCompileToJarReleaseTask :app:packageDebugTask :shapeimageviewlib:compileReleaseLibraryResourcesTask :app:createDebugApkListingFileRedirectTask :app:assembleDebugTask :shapeimageviewlib:createFullJarReleaseTask :shapeimageviewlib:writeReleaseLintModelMetadataTask :app:mergeReleaseJniLibFoldersTask :shapeimageviewlib:copyReleaseJniLibsProjectOnlyTask :app:mergeReleaseNativeLibs NO-SOURCETask :app:stripReleaseDebugSymbols NO-SOURCETask :app:extractReleaseNativeSymbolTables NO-SOURCETask :app:mergeReleaseNativeDebugMetadata NO-SOURCETask :app:desugarReleaseFileDependenciesTask :app:checkReleaseDuplicateClassesTask :app:mergeReleaseResourcesTask :app:dataBindingGenBaseClassesReleaseTask :app:mergeReleaseShadersTask :app:compileReleaseShaders NO-SOURCETask :app:generateReleaseAssets UP-TO-DATETask :app:mergeReleaseAssetsTask :app:compressReleaseAssetsTask :app:processReleaseJavaRes NO-SOURCETask :app:collectReleaseDependenciesTask :app:sdkReleaseDependencyDataTask :app:writeReleaseAppMetadataTask :app:writeReleaseSigningConfigVersionsTask :shapeimageviewlib:stripDebugDebugSymbols NO-SOURCETask :shapeimageviewlib:copyDebugJniLibsProjectAndLocalJarsTask :shapeimageviewlib:extractDebugAnnotationsTask :shapeimageviewlib:extractDeepLinksForAarDebugTask :shapeimageviewlib:mergeDebugGeneratedProguardFilesTask :shapeimageviewlib:mergeDebugConsumerProguardFilesTask :shapeimageviewlib:prepareDebugArtProfileTask :app:processReleaseManifestForPackageTask :shapeimageviewlib:mergeDebugJavaResourceTask :shapeimageviewlib:syncDebugLibJarsTask :app:mergeReleaseArtProfileTask :shapeimageviewlib:bundleDebugAarTask :shapeimageviewlib:assembleDebugTask :shapeimageviewlib:bundleReleaseAarTask :shapeimageviewlib:mapReleaseSourceSetPathsTask :shapeimageviewlib:mergeReleaseResourcesTask :shapeimageviewlib:generateMetadataFileForDebugPublicationTask :shapeimageviewlib:generatePomFileForDebugPublicationTask :shapeimageviewlib:publishDebugPublicationToMavenLocalTask :shapeimageviewlib:generateMetadataFileForReleasePublicationTask :shapeimageviewlib:generatePomFileForReleasePublicationTask :shapeimageviewlib:publishReleasePublicationToMavenLocalTask :shapeimageviewlib:publishToMavenLocalTask :app:processReleaseResourcesTask :shapeimageviewlib:verifyReleaseResources Task :app:compileReleaseJavaWithJavac Task :app:mergeExtDexReleaseTask :app:dexBuilderReleaseTask :shapeimageviewlib:assembleReleaseTask :shapeimageviewlib:assembleTask :app:mergeReleaseJavaResourceTask :app:optimizeReleaseResourcesTask :app:mergeDexReleaseTask :app:compileReleaseArtProfileTask :app:packageReleaseTask :app:createReleaseApkListingFileRedirectTask :app:lintVitalAnalyzeReleaseTask :app:lintVitalReportReleaseTask :app:lintVitalReleaseTask :app:assembleReleaseTask :app:assembleBUILD SUCCESSFUL in 1m 28s 137 actionable tasks: 134 executed, 3 up-to-date Picked up JAVA_TOOL_OPTIONS: -Dfile.encodingUTF-8 -Dhttps.protocolsTLSv1.2 Picked up JAVA_TOOL_OPTIONS: -Dfile.encodingUTF-8 -Dhttps.protocolsTLSv1.2Picked up JAVA_TOOL_OPTIONS: -Dfile.encodingUTF-8 -Dhttps.protocolsTLSv1.2Picked up JAVA_TOOL_OPTIONS: -Dfile.encodingUTF-8 -Dhttps.protocolsTLSv1.2Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: [1] Wrote GeneratedAppGlideModule with: [com.bumptech.glide.integration.okhttp3.OkHttpLibraryGlideModule] Note: /home/jitpack/build/app/src/main/java/com/hirezy/shapeimageview/ScaleTypeActivity.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /home/jitpack/build/app/src/main/java/com/hirezy/shapeimageview/MyImageLoader.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: [1] Wrote GeneratedAppGlideModule with: [com.bumptech.glide.integration.okhttp3.OkHttpLibraryGlideModule] Note: /home/jitpack/build/app/src/main/java/com/hirezy/shapeimageview/ScaleTypeActivity.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /home/jitpack/build/app/src/main/java/com/hirezy/shapeimageview/MyImageLoader.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Picked up JAVA_TOOL_OPTIONS: -Dfile.encodingUTF-8 -Dhttps.protocolsTLSv1.2 Publication: com.github.hirezy:ShapeImageView-debug:1.0.0 Publication: com.github.hirezy:ShapeImageView:1.0.0 Build tool exit code: 0 Looking for artifacts... Picked up JAVA_TOOL_OPTIONS: -Dfile.encodingUTF-8 -Dhttps.protocolsTLSv1.2 Picked up JAVA_TOOL_OPTIONS: -Dfile.encodingUTF-8 -Dhttps.protocolsTLSv1.2 Looking for pom.xml in build directory and ~/.m2 Found artifact: com.github.hirezy:ShapeImageView-debug:1.0.0 Found artifact: com.github.hirezy:ShapeImageView:1.0.0 Found artifact: com.github.hirezy:ShapeImageView-debug:1.0.0 Found artifact: com.github.hirezy:ShapeImageView:1.0.0 2023-09-07T10:36:21.971608584Z Exit code: 0✅ Build artifacts: com.github.hirezy.ShapeImageView:ShapeImageView:v1.0.1 com.github.hirezy.ShapeImageView:ShapeImageView-debug:v1.0.1Files: com/github/hirezy/ShapeImageView/ShapeImageView/v1.0.1 com/github/hirezy/ShapeImageView/ShapeImageView/v1.0.1/ShapeImageView-v1.0.1.aar com/github/hirezy/ShapeImageView/ShapeImageView/v1.0.1/ShapeImageView-v1.0.1.module com/github/hirezy/ShapeImageView/ShapeImageView/v1.0.1/ShapeImageView-v1.0.1.pom com/github/hirezy/ShapeImageView/ShapeImageView/v1.0.1/ShapeImageView-v1.0.1.pom.md5 com/github/hirezy/ShapeImageView/ShapeImageView/v1.0.1/ShapeImageView-v1.0.1.pom.sha1com/github/hirezy/ShapeImageView/ShapeImageView-debug/v1.0.1 com/github/hirezy/ShapeImageView/ShapeImageView-debug/v1.0.1/ShapeImageView-debug-v1.0.1.aar com/github/hirezy/ShapeImageView/ShapeImageView-debug/v1.0.1/ShapeImageView-debug-v1.0.1.module com/github/hirezy/ShapeImageView/ShapeImageView-debug/v1.0.1/ShapeImageView-debug-v1.0.1.pom com/github/hirezy/ShapeImageView/ShapeImageView-debug/v1.0.1/ShapeImageView-debug-v1.0.1.pom.md5 com/github/hirezy/ShapeImageView/ShapeImageView-debug/v1.0.1/ShapeImageView-debug-v1.0.1.pom.sha1七如何使用 首先在要引用的项目的根目录的build.gradle文件下加入JitPack repositoryAdd the JitPack repository to your build file allprojects {repositories {...maven { url https://jitpack.io }}} 接着Add the dependency dependencies {implementation com.github.hirezy:ShapeImageView:Tag} 注意如果你使用的是1.0.0版本就是 dependencies {implementation com.github.hirezy:ShapeImageView:1.0.0} 使用1.0.1版本就是 dependencies {implementation com.github.hirezy:ShapeImageView:1.0.1} 依次类推。 总结 要想成功顺利的将我们的lib发布到Jitpack,必须具备以下条件 首先要注册相关账号比如GitHub账号Gitee账户,Jitpack账户掌握基本的git命令以及属性groovy编译工具的语法正确配置gradle版本gradle插件版本Android studio 版本的对应关系总重要的一点就是要有足够的耐心发现问题分析问题解决问题
http://www.dnsts.com.cn/news/56801.html

相关文章:

  • 怎么用网站做地标网页设计什么软件
  • 北京网站优化步骤拉趣网站是谁做的
  • 襄阳市做网站的公司南通企业做网站
  • 来个黑黑的网站小程序源码怎么打开
  • 贵州建设厅网站办事大厅企业做网站需要什么软件
  • 网站图片规格枣庄市 网站建设
  • 国家网站icp备案查询友情链接交换平台免费
  • 网站显示正在建设中wordpress数据库配置
  • 中联汇科 网站建设深圳市招聘网站
  • 建设校园网站网站建设分录怎么开
  • 网站建设设计企业小型网站设计及建设论文范本
  • 为什么学网站开发岳阳建设局网站
  • 自己制作网站该怎么做用qq号码可以做网站吗
  • 怎样删除网站wordpress授权破解
  • 网站音乐播放器代码影视网站建设多少钱
  • 用万网建设网站教程视频中铁建设中南分公司
  • 企业解决方案参考网站郑州网站设计汉狮
  • 网站开发代码规范东营新闻联播在线直播
  • 手机网站 分辨率开源 网站源代码
  • 淘宝关键词排名查询网站网站项目报价单模板免费下载
  • 宾馆网站制作随州哪里学做网站
  • 重庆店铺整站优化镇江网站制作费用
  • 南昌专业的企业网站建设公司一二三四免费观看高清视频
  • 建筑网站绿地新里城piwigo wordpress
  • asp.net网站开发详解网站建设是什么专业啊
  • 网站开发与维护 专业北京网站建设外包公司
  • 什么网站做谷歌联盟好平台网站建设的公司
  • 网站建设前期调研公司汇报宽带动态ip如何做网站访问
  • 创建学校网站做微信公众号的是哪个网站吗
  • 设计业务网站网站建设管理汇报