stetho

Android常用第三方框架记录

妖精的绣舞 提交于 2020-11-19 04:49:08
先记录,万一用到呢 1、腾讯TBS浏览器WebView,避免系统WebView的多坑。 2、智能布局加载更多:SmartRefreshLayout 3、沉浸式布局:ImmersionBar 4、注解:ButterKnife 5、键盘监听:KeyboardHeightProvider 6、滑动TabLayout:SlidingTabLayout 6、音视频播放器:IjkPlayer 7、音视频缓存管理:HttpProxyCacheServer 8、JS连接桥:com.github.lzyzsd:jsbridge 9、权限检测:com.yanzhenjie:permission 10、照片裁减:badgeview 11、桌面应用角标:com.facebook.stetho:stetho 12、地址选择器:com.soundcloud.android:android-crop 13、内存检测:leakcanary 14、图片加载:Fresco(建议使用,加载速度比Glide快,加载动画适配机型比Glide多) 15、Banner:cn.bingoogolapple:bga-banner 16、事件传递:EventBus,Rxbus(如果使用RxJava,建议使用) 17、流式布局:com.github.iwgang:countdownview 18、数据库:GreenDao 19

Remote Debugging has been terminated with reason: Connection lost

↘锁芯ラ 提交于 2020-01-16 08:03:52
问题 I am getting connection lost error, when try to see the realm database. here's how i am initalizing stetho and realm. i am still getting this error. I have even put withDeleteIfMigrationNeeded( true ). still didn't work. public class ApplicationClass extends Application { // Database Name... private static final String DB_NAME = "Cheruvu.realm"; @Override public void onCreate() { super.onCreate(); configureRealm(); } private void configureRealm() { Realm.init( this );

Remote Debugging has been terminated with reason: Connection lost

烂漫一生 提交于 2020-01-16 08:03:12
问题 I am getting connection lost error, when try to see the realm database. here's how i am initalizing stetho and realm. i am still getting this error. I have even put withDeleteIfMigrationNeeded( true ). still didn't work. public class ApplicationClass extends Application { // Database Name... private static final String DB_NAME = "Cheruvu.realm"; @Override public void onCreate() { super.onCreate(); configureRealm(); } private void configureRealm() { Realm.init( this );

Import library only for debugging

百般思念 提交于 2020-01-15 07:21:08
问题 I am using stetho lib for debugging my app. Gradle: debugCompile 'com.facebook.stetho:stetho:1.4.1' debugCompile 'com.uphyca:stetho_realm:2.0.0' Application class: if (BuildConfig.DEBUG) { Stetho.initialize(..); } But if I need to create a release version I must comment every time: import com.facebook.stetho.Stetho; import com.uphyca.stetho_realm.RealmInspectorModulesProvider; How to show the compiler that these libs only for debugging? Can we comment on two lines without creating an

Duplicate “id” column with DBFlow tables and Stetho

喜你入骨 提交于 2019-12-31 01:25:39
问题 I'm writing an application for Android using DBFlow as ORM library. So, here is one of my tables model: @Table(database = Database.class) public class Language extends BaseModel { @PrimaryKey(autoincrement = true) long id; @Column String key; @Column String title; public long getId() { return id; } public void setId(long id) { this.id = id; } /* .. Other setters and getters .. */ } Everything works pretty good, but when I take a look at my DB inspector (I'm using Stetho), I can see 2

Exclude class from kotlin compile path for release build type

不羁岁月 提交于 2019-12-11 16:21:53
问题 I am adding Stetho in my app. To prevent its dependency in release apk I have added it as a debug dependency only. debugApi 'com.facebook.stetho:stetho:1.5.1' debugApi 'com.facebook.stetho:stetho-okhttp:1.5.1' I have a Initializer interface which configures Stetho. interface IStethoInitializer { /** * Call on application create */ fun initStetho(context: Context) fun getStethoNetworkInterceptor(): Interceptor? } And 2 implementations of the same: one for release other for debug. import

NoClassDefFoundError: Failed resolution of: Lio/realm/internal/LinkView

為{幸葍}努か 提交于 2019-12-11 03:23:55
问题 I am using Realm. I installed Stetho-Realm to view realm data. This is what i have done. buildscript { ... repositories { google() jcenter() ... } dependencies { classpath 'com.android.tools.build:gradle:3.1.3' ... classpath "io.realm:realm-gradle-plugin:5.1.0" } } allprojects { repositories { google() jcenter() maven { url 'https://maven.google.com/' } maven { url 'https://github.com/uPhyca/stetho-realm/raw/master/maven-repo' } } } App gradle stetho:1.5.0 stetho_realm:2.1.0 multidex:1.0.3

Android Studio 2.1.1: “no usb devices or running emulators detected”

烈酒焚心 提交于 2019-12-07 07:56:53
问题 Suddenly my Android Studio stopped detecting all my devices, none of them is working. It happen from one execution to another. I've changed a few lines of code (1 min maybe?), hit run (instant run) and then I missed all my devices. I'm using a Mac and as devices: Nexus 5x, Galaxy s6 and Oneplus One. What can be happening? I've checked previous questions here and tried all this: Run configurations: no matter if I chose usb device or show the window, it does not work. Tools > Android > Enable

Stetho showing two columns with same name

我的未来我决定 提交于 2019-12-07 01:35:32
问题 Hello I am using Stetho debugging platform for my application. I have added Stetho in my gradle as follows dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:design:23.1.1' compile 'com.facebook.stetho:stetho:1.2.0' } and initialized it into onCreate method as follows @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Stetho showing two columns with same name

落花浮王杯 提交于 2019-12-05 05:03:25
Hello I am using Stetho debugging platform for my application. I have added Stetho in my gradle as follows dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:design:23.1.1' compile 'com.facebook.stetho:stetho:1.2.0' } and initialized it into onCreate method as follows @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Stetho.initializeWithDefaults(this); findElementsByIds();