我一直在寻找一段时间,并尝试了我能找到的每一个答案都没有成功.我开始相信问题出在android studio版本中.
然而,这就是我所做的:
1 - 我已经下载了facebook sdk
2 - 将sdk复制到我的libs文件夹中,以便项目如下所示:
Run Code Online (Sandbox Code Playgroud)MyProj -app --libs ---facebook ----build.gradle (2) --build.gradle (1) -settings.gradle
3 - 我修改了settings.gradle:
include ':libs:facebook', ':app'
Run Code Online (Sandbox Code Playgroud)
4 - 我将build.gradle(1)修改为:
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "19.0.3"
defaultConfig {
minSdkVersion 16
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'me.dm7.barcodescanner:zxing:1.0'
compile 'com.koushikdutta.ion:ion:1.2.4'
compile 'com.google.code.gson:gson:2.2.+'
compile 'com.squareup.picasso:picasso:2.1.1'
compile project(':libs:facebook');
}
Run Code Online (Sandbox Code Playgroud)
5 - …
android facebook include android-facebook android-gradle-plugin
我正在使用运行Debian Linux的Raspberry Pi.我正在尝试安装MySQL服务器并运行它,这就是我所做的:
# sudo apt-get install mysql-server mysql-client php5-mysql
Run Code Online (Sandbox Code Playgroud)
没有错误.现在我重新启动了系统,然后在启动时我得到:
[FAIL] startpar: service(s) returned failure: mysql ... failed!
Run Code Online (Sandbox Code Playgroud)
我试过了
# sudo service mysql start
mysql: unrecognized service
Run Code Online (Sandbox Code Playgroud)
最后我试过了
# /etc/init.d; mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Run Code Online (Sandbox Code Playgroud)
我发现我没有名为mysqld的文件夹in /var/run.但我读到这里的sock文件应该在第一次创建服务器时创建?
你有什么建议吗?
所以我使用React native创建了我的应用程序,并且刚刚创建了我的第一个发布版本.我现在的问题是我无法回复原生调试模式.
通过遵循文档,这就是我所做的.
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/
Run Code Online (Sandbox Code Playgroud)
这段代码生成了捆绑index.android.bundle和index.android.bundle.meta
现在每次执行时react-native run-android,javascript代码库都不会更新应用程序,我无法访问我的应用程序中的开发(摇动)菜单.
如果我react-native bundle再次运行,代码将更新.
我想这是一个简单的问题,但无法找到任何信息如何返回,所以应用程序不再使用捆绑版本.