首页 文章 精选 留言 我的

精选列表

搜索[接口调试],共10009篇文章
优秀的个人博客,低调大师

Android--Xutils3源码案例调试

版权声明:本文为博主原创文章,转载请标明出处。 https://blog.csdn.net/chaoyu168/article/details/77842358 下载网址:https://github.com/wyouflf/xUtils3 第一步:新建一个自己的工程; 第二步:点File->New->Import Module,选择自己下载好的xutils3,目录为:D:\adtext\xUtils3-master\sample 第三步:修改库xutils的build.gradle,屏蔽无用代码,将versionName的值改为版本号,修改; apply plugin: 'com.android.library' //apply plugin: 'com.github.dcendents.android-maven' //apply plugin: 'com.jfrog.bintray' // //def siteUrl = 'https://github.com/wyouflf/xUtils3' //def gitUrl = 'https://github.com/wyouflf/xUtils3.git' //group = "org.xutils" //version = "3.5.0" android { compileSdkVersion 25 buildToolsVersion '25.0.0' defaultConfig { minSdkVersion 14 targetSdkVersion 25 versionCode 20170405 versionName "3.5.0" } buildTypes { debug { minifyEnabled false debuggable true } release { minifyEnabled false debuggable true } } sourceSets { main { jniLibs.srcDirs = ['libs'] java.srcDirs = ['src/main/java'] } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_6 targetCompatibility JavaVersion.VERSION_1_6 } } //install { // repositories.mavenInstaller { // // This generates POM.xml with proper parameters // pom { // project { // packaging 'aar' // name 'xUtils' // description 'android orm, bitmap, http, view inject... ' // // #CONFIG# // project title // url siteUrl // // Set your license // licenses { // license { // name 'The Apache Software License, Version 2.0' // url 'http://www.apache.org/licenses/LICENSE-2.0.txt' // } // } // developers { // developer { // id 'wyouflf' // // #CONFIG# // your user id (you can write your nickname) // name 'lei.jiao' // // #CONFIG# // your user name // email 'wyouflf@qq.com' // // #CONFIG# // your email // } // } // scm { // connection gitUrl // developerConnection gitUrl // url siteUrl // } // } // } // } //} //task sourcesJar(type: Jar) { // from android.sourceSets.main.java.srcDirs // classifier = 'sources' //} //task javadoc(type: Javadoc) { // options.encoding = "UTF-8" // source = android.sourceSets.main.java.srcDirs // classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) //} //task javadocJar(type: Jar, dependsOn: javadoc) { // classifier = 'javadoc' // from javadoc.destinationDir //} //artifacts { // archives javadocJar // archives sourcesJar //} //Properties properties = new Properties() //properties.load(project.rootProject.file('local.properties').newDataInputStream()) //bintray { // user = properties.getProperty("bintray.user") // key = properties.getProperty("bintray.apikey") // configurations = ['archives'] // pkg { // repo = "maven" // name = "xUtils" // // #CONFIG# project name in jcenter // websiteUrl = siteUrl // vcsUrl = gitUrl // licenses = ["Apache-2.0"] // publish = true // } //}第四步:修改xutils_sample的 build.gradle,修改红色字体的版本号,要与自己app的build.gradle版本号一致; apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion '25.0.0' defaultConfig { applicationId "org.xutils.sample" minSdkVersion 14 targetSdkVersion 22 // 不使用api23的动态权限策略 versionCode 1 versionName "1.0" } signingConfigs { debugConfig { storeFile file("debug.keystore") storePassword "android" keyAlias "androiddebugkey" keyPassword "android" } } buildTypes { release { debuggable false minifyEnabled true signingConfig signingConfigs.debugConfig proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.android.support:support-v4:25.3.1' compile 'com.android.support:recyclerview-v7:25.3.1' compile 'com.android.support:design:25.3.1' compile project(':xutils') } 第五步:将xutils库作为工程添加到自己app的build.gradle中,在File->Project Structure中选择APP,然后library中添加 初始化时导入: import org.xutils.x;

资源下载

更多资源
Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

用户登录
用户注册