1: svn出错
svn: E200033: Another process is blocking the working copy database, or the underlying filesystem does not support file locking; if the working copy is on a network filesystem, make sure file locking has been enabled on the file server
svn: E200033: sqlite[S5]: database is locked
svn: E200042: Additional errors:
svn: E200033: sqlite[S5]: database is locked
执行:
cd /your project/.svn
mv wc.db wc.db.old
sqlite3 wc.db.old
sqlite3> .backup main wc.db
sqlite3> .exit
svn cleanup
2. INSTALL_FAILED_UPDATE_INCOMPATIBLE(更新不兼容)(adb)
解决:
(1)、卸载掉之前的程序,再安装
(2)、如果第一步还是不行,adb uninstall 程序的包名、再adb install ...
3.android-studio编译错误
04-29 16:09:19.253 13361-13361/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.lex.out.slots.g1, PID: 13361 java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/customtabs/CustomTabsIntent$Builder; at com.facebook.internal.CustomTab.openCustomTab(CustomTab.java:49) at com.facebook.CustomTabMainActivity.onCreate(CustomTabMainActivity.java:68) at android.app.Activity.performCreate(Activity.java:5990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.customtabs.CustomTabsIntent$Builder" on path: DexPathList[[zip file "/data/app/com.lex.out.slots.g1-1/base.apk"],nativeLibraryDirectories=[/data/app/com.lex.out.slots.g1-1/lib/arm, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:469) at com.facebook.internal.CustomTab.openCustomTab(CustomTab.java:49) at com.facebook.CustomTabMainActivity.onCreate(CustomTabMainActivity.java:68) at android.app.Activity.performCreate(Activity.java:5990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) Suppressed: java.lang.ClassNotFoundException: android.support.customtabs.CustomTabsIntent$Builder at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java:781) at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) at java.lang.ClassLoader.loadClass(ClassLoader.java:504) ... 16 more Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
参考
https://stackoverflow.com/questions/43369946/facebook-login-button-click-fails-when-facebook-app-isnt-installed
一般是缺少平板的配置:加上:
implementation 'com.android.support:appcompat-v7:26.0.0'
implementation 'com.android.support:customtabs:26.0.0'
4.自2019年8月1日起, 在Google Play中发布应用都必须提供64位版本
1.使用 Android Studio 或 Gradle 进行编译
修改如下:
大多数 Android Studio 项目都使用 Gradle 作为底层编译系统,因此本部分适用于使用这两种工具进行编译的情况。针对原生代码进行编译很简单,只需将 arm64-v8a 和/或 x86_64(取决于您要支持的架构)添加到应用的“build.gradle”文件中的 ndk.abiFilters 设置:
// Your app's build.gradle
apply plugin: 'com.android.app'
android {
compileSdkVersion 27
defaultConfig {
appId "com.google.example.64bit"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
// ...
2.使用 ndk-build 进行编译
如果您的应用是使用 ndk-build 编译的,则可以通过 APP_ABI 变量修改“app.mk”文件,从而编译 64 位 ABI:
APP_ABI := armeabi-v7a arm64-v8a x86 x86_64
详解compileSdkVersion、minSdkVersion、targetSdkVersion及buildToolsVersion
https://www.kaelli.com/26.html
5.android-studio编译错误->计费点问题
error:
Failed to query inventory:labResult:Error refreshing inventory(Querying owned items).Failed to query inventory:labResult:Error refreshing inventory(Querying owned items).response:-1003: Purchase signature verification failed
这个错提示:
查询库存出错,
原因是我们换了开发者账号,并重新设置计费点, 但是并没有换,验证公钥, 所以回报这个错/
参考下面博客:
https://stackoverflow.com/questions/26641052/error-refreshing-inventory-in-app-billing
6.android-studio编译错误->网络问题
Connect to 127.0.0.1:1087 [/127.0.0.1] failed: Connection refused: connect
解决:
https://blog.csdn.net/luchongbin/article/details/84257441