我有一个多项目(2个模块),每次建筑大约需要1/2分钟.当我在Android Studio中按Run时,我必须每次都等待重建应用程序,这非常慢.每次花费6/8分钟.
是否可以在Android Studio中自动化构建过程?或者您对如何更快地完成此过程有任何建议?
这是我的build.gradle文件(app模块):
allprojects {
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
maven { url 'http://clinker.47deg.com/nexus/content/groups/public' }
}
}
apply plugin: 'com.android.application'
dependencies {
compile 'com.dlazaro66.qrcodereaderview:qrcodereaderview:1.0.0'
compile fileTree(dir: 'libs', include: '*.jar')
compile('com.fortysevendeg.swipelistview:swipelistview:1.0-SNAPSHOT@aar') {
transitive = true
}
compile 'com.android.support:multidex:1.0.1'
compile 'com.github.nirhart:parallaxscroll:1.0'
compile 'com.github.amlcurran.showcaseview:library:5.0.0'
compile 'com.android.support:support-v4:22.0.1'
compile 'com.android.support:appcompat-v7:22.0.1'
compile 'com.android.support:design:22.2.+'
compile 'com.rengwuxian.materialedittext:library:2.1.4'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.easing:library:1.0.1@aar'
compile 'com.daimajia.androidanimations:library:1.1.3@aar'
compile 'com.pnikosis:materialish-progress:1.7'
compile 'com.github.fenjuly:ArrowDownloadButton:9e15b85e8a'
compile 'ch.acra:acra:4.5.0'
compile 'com.yalantis:contextmenu:1.0.5'
compile project(':locationlib')
}
configurations {
compile.exclude group: 'javax.inject', module: 'javax.inject'
}
android …
Run Code Online (Sandbox Code Playgroud) 最近Twitter工具包将失去支持,我想知道什么是正确和推荐的方式来集成显示搜索的推文推文(使用api本地或一些新的替代品,推特套件)现在和未来.
大多数在线教程已弃用或使用Twitter工具包不能用于Twitter在您的服务上进行的某些更改并且在oAuth上失败.
问题是如何在今年将Twitter与Android Api-28上的新原生api集成
如果有人有样品或开始项目,我会对此进行评估.
目的是用谷歌地图显示搜索。
我在离子/角度项目中遇到此错误
运行时错误 没有 MapsAPILoader 的提供者! 堆 错误:没有 MapsAPILoader 的提供程序! 在注入错误(http://localhost:8103/build/main.js:1655:86) 在 noProviderError (http://localhost:8103/build/main.js:1693:12) 在 ReflectiveInjector_._throwOrNull (http://localhost:8103/build/main.js:3194:19) 在 ReflectiveInjector_._getByKeyDefault (http://localhost:8103/build/main.js:3233:25) 在 ReflectiveInjector_._getByKey (http://localhost:8103/build/main.js:3165:25) 在 ReflectiveInjector_.get (http://localhost:8103/build/main.js:3034:21) 在AppModuleInjector.NgModuleInjector.get(http://localhost:8103/build/main.js:3981:52) 在resolveDep(http://localhost:8103/build/main.js:11441:45) 在createClass(http://localhost:8103/build/main.js:11305:32) 在 createDirectiveInstance (http://localhost:8103/build/main.js:11125:37)
在应用程序模块中
从'@agm/core'导入{AgmCoreModule}; 从“angular2-google-maps/core/services/google-maps-api-wrapper”导入{GoogleMapsAPIWrapper}; 进口:[ AgmCoreModule.forRoot({ apiKey:'********',库:[“地点”] }) ]
然后在组件页面
从 'angular2-google-maps/core' 导入 {MapsAPILoader}; 构造函数(私有mapsAPILoader:MapsAPILoader){ this.mapsAPILoader.load().then(() => { 让 autocomplete = new google.maps.places.Autocomplete(this.searchElementRef.nativeElement, { 类型:[“地址”] }); autocomplete.addListener("place_changed", () => { this.ngZone.run(() => { //获取地点结果 让地点:google.maps.places.PlaceResult = autocomplete.getPlace(); //验证结果 if (place.geometry === undefined || place.geometry === null) { 返回; } …
如何使用Couchdb配置CUSTOM_DATA字段?
我想设置一个配置值与错误一起发送。在后端,我有一个带有ACLARYZER Web应用程序的沙发数据库。
这是我在Android的Application.class上定义此自定义数据值的代码。
@ReportsCrashes(
formUri = "https://user.cloudant.com/acra-report/_design/acra-storage/_update/report",
reportType = HttpSender.Type.JSON,
httpMethod = HttpSender.Method.POST,
formUriBasicAuthLogin = "user",
formUriBasicAuthPassword = "pass",
formKey = "", // This is required for backward compatibility but not used
customReportContent = {
ReportField.APP_VERSION_CODE,
ReportField.APP_VERSION_NAME,
ReportField.ANDROID_VERSION,
ReportField.PACKAGE_NAME,
ReportField.REPORT_ID,
ReportField.BUILD,
ReportField.STACK_TRACE,
ReportField.CUSTOM_DATA
},
mode = ReportingInteractionMode.TOAST,
resToastText = R.string.reporte_error
)
public class my_applicaction extends Application{
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
ACRA.init(my_applicaction.this);
ACRA.getErrorReporter().putCustomData("myKey", "myValue");
ACRA.getErrorReporter().handleException(null);
}
}
Run Code Online (Sandbox Code Playgroud)
现在的问题是如何在沙发数据库中添加值以获取此自定义数据字段。还是我必须在ACRALYZER中定义自定义数据?
谢谢?
android ×3
java ×2
acra ×1
acralyzer ×1
angular ×1
couchdb ×1
google-maps ×1
gradle ×1
twitter ×1
twitterkit ×1
typescript ×1