Android_xUtils3的使用说明.docVIP

  • 16
  • 0
  • 约4.99千字
  • 约 5页
  • 2017-07-09 发布于河南
  • 举报
Android_xUtils3的使用说明

使用已经打好的xUtils3jar包开发项目的步骤 导入jar包和so文件(解压libs.rar) 编辑build.gradle, 添加红色代码 apply plugin: com.android.application android { compileSdkVersion 19 buildToolsVersion 19.1.0 defaultConfig { applicationId com.spl.xutils3jardemo minSdkVersion 15 targetSdkVersion 19 versionCode 1 versionName 1.0 } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile(proguard-android.txt), } } sourceSets.main{ jniLibs.srcDirs = [libs] } } dependencies { compile fileTree(dir: libs, include: [*.jar]) compile files(libs/xUtils3.jar) } 编辑清单文件,添加红色代码 ?xml version=1.0 encoding=utf-8? manifest xmlns:android=/apk/res/android package=com.spl.xutils3jardemo uses-permission android:name=android.permission.INTERNET/ uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE/ application android:name=org.xutils.xutils3.MyApplication android:allowBackup=true android:icon=@drawable/ic_launcher android:label=@string/app_name android:theme=@style/AppTheme activity android:name=.MainActivity android:label=@string/app_name intent-filter action android:name=ent.action.MAIN / category android:name=ent.category.LAUNCHER / /intent-filter /activity /application /manifest 编辑主布局xml LinearLayout xmlns:android=/apk/res/android xmlns:tools=/tools android:layout_width=match_parent android:layout_height=match_parent android:paddingLeft=@dimen/activity_horizontal_margin android:paddingRight=@dimen/activity_horizontal_margin android:paddingTop=@dimen/activity_vertical_margin android:paddingBottom=@dimen/activity_vertical_margin android:orientation=vertical tools:context=.MainActivity Button android:id=@+id/btn1 android:layout_width=wrap_content

文档评论(0)

1亿VIP精品文档

相关文档