guolindev / glance Goto Github PK
View Code? Open in Web Editor NEWA simple and handy Android database debugging library.
License: Apache License 2.0
A simple and handy Android database debugging library.
License: Apache License 2.0
你好,通过debugImplementation接入Glance在cosofteck RK3510S(Android 7.1.2)和Allwiner DS83X(Android 4.4.4)两款设备上发现,会导致部分ConstraintLayout布局错乱。
其中一个布局中间有个默认图片正常显示,但是接入库后变不能正常显示。
<ImageView
android:id="@+id/default_finger_icon"
android:layout_width="@dimen/verify_ic_width"
android:layout_height="@dimen/verify_ic_width"
android:src="@drawable/ic_default_finger"
app:layout_constraintBottom_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="parent" />
我使用的参数: Android Studio 4.1
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
compileSdkVersion 29
buildToolsVersion "29.0.2"
minSdkVersion 19
targetSdkVersion 29
最后感谢作者辛苦付出,致敬!
Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
List of apks:
[0] '/xxxx/app/build/intermediates/apk/debug/app-debug.apk'
Installation failed due to: 'INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl381002890.tmp/base.apk (at Binary XML file line #42): com.glance.guolindev.ui.db.DBActivityLauncher: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present'
Failed to launch an application on all devices
可能是因为项目只能使用jdk1.8编译,不知道是不是这个问题😂
java.lang.NoSuchMethodError: No static method metafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; in class Ljava/lang/invoke/LambdaMetafactory; or its super classes (declaration of 'java.lang.invoke.LambdaMetafactory' appears in /apex/com.android.art/javalib/core-oj.jar)
Kotlin版本要求太高了
Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.
1.数据库如果不是以.db结尾,则找不到文件
2.�表名显示不全,后面是。。。
3.表中字段过多情况,显示不全
数据库内容较多时查找不是很方便,增加一个搜索框用来搜索数据库,筛选内容。
有入口输入密码吗?
我使用https://github.com/sqlcipher/android-database-sqlcipher 加密
使用的greendao,开始没有显示我创建的数据库,在数据库名加上 .db,就能看到了
Paging库冲突 项目paging 是2.0的
郭神你好:
我在以大概2,3秒添加一条数据这样的频率使用时,大概在添加到100到条数据后。我从自己的app返回桌面,打开Glance时,发现弹出Toast提示报错,只来得及看见“close”关键字样。然后发现数据库消失了。后面再使用,发现数据重新被创建了。原来的数据全部丢失。我不能确定是否是Glance导致的。
gradle导入成功了,但是安装运行的时候失败了,这是得翻墙么?
FAILURE: Build failed with an exception.
Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not resolve com.glance.guolindev:glance:1.0.0-alpha01.
Required by:
project :app
> Could not resolve com.glance.guolindev:glance:1.0.0-alpha01.
> Could not get resource 'https://maven.google.com/com/glance/guolindev/glance/1.0.0-alpha01/glance-1.0.0-alpha01.pom'.
> Could not HEAD 'https://maven.google.com/com/glance/guolindev/glance/1.0.0-alpha01/glance-1.0.0-alpha01.pom'.
> Connect to maven.google.com:443 [maven.google.com/172.217.160.78] failed: connect timed out
目前只支持应用自己的db一瞥,意味着每个app都要加这个依赖,或者copy到你加了工具的应用目录下,略嫌麻烦。
如果能读取整个设备的岂不美哉
郭神,您做的glance已经用上!真的太方便了,用database inspector经常打开数据库有延迟(就是经常无端端显示不了数据库),但是发现glance何时何地都能直接查看数据库的全部数据,真的超级方便!美中不足的就是,现在还差一个刷新按钮,就是当数据库数据改变时,手动点击刷新,虽然目前可以通过重新进入数据页面刷新,难免不及刷新按钮来得实在。不管说都是很实用的库!谢谢郭神,已提issue
郭shen 能不能增加一个长按复制功能。
因为有些表里面某列存的内容比较多,直接看不太方便,想复制出来查看。
郭神,通过glance看到一张表中的列名不是完全按照在创建表时的顺序排序的,看起来有些不方便.
比如一张表其中有year,month,day三个列,在使用glance查看时顺序是month,year ...其他字段,day,略有不方便,尤其在大数据量的时候,不太好对应的查看
生成的Glance入口,名字能不能跟应用关联起来,因为如果几个app同时集成这个库的话,还得一起点开看才能找到对应的?
1.0.0没有问题,今天公众号更新了1.1.0就会编译报错
设备Android7.1.2
Execution failed for task ':app:checkDebugAarMetadata'.
Multiple task action failures occurred:
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> The minCompileSdk (30) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-29).
Dependency: androidx.paging:paging-runtime-ktx:3.1.0-alpha03.
AAR metadata file: C:\Users\gateon.gradle\caches\transforms-2\files-2.1\8641f3694ffa0e7b8c7f38bb29147fd7\jetified-paging-runtime-ktx-3.1.0-alpha03\META-INF\com\android\build\gradle\aar-metadata.properties.
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> The minCompileSdk (30) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-29).
Dependency: androidx.paging:paging-runtime:3.1.0-alpha03.
AAR metadata file: C:\Users\gateon.gradle\caches\transforms-2\files-2.1\37af3c31b563b7374ae2fb4c22127d8f\paging-runtime-3.1.0-alpha03\META-INF\com\android\build\gradle\aar-metadata.properties.
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> The minCompileSdk (30) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-29).
Dependency: androidx.startup:startup-runtime:1.1.0.
AAR metadata file: C:\Users\gateon.gradle\caches\transforms-2\files-2.1\ace8c3ee754f6ea7deeec59ee4570dd4\jetified-startup-runtime-1.1.0\META-INF\com\android\build\gradle\aar-metadata.properties.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.