我知道这里有问题
正确的答案是更改版本没有解决我的问题id在我的清单中添加了这两行
android:versionCode="2"
android:versionName="2.01"
Run Code Online (Sandbox Code Playgroud)
但是当我使用android studio清理和构建时再次生成apk然后上传相同的错误发生..
注意:我确实检查过它是我尝试在开发者控制台中上传的正确文件
当我跑 adb devices
adb server is out of date. killing...
cannot bind 'tcp:5037'
ADB server didn't ACK
* failed to start daemon *
error:
Run Code Online (Sandbox Code Playgroud)
它与此相同的错误在这里
.一些评论说,尝试adb kill-server再次启动adb,但它在我的ubuntu机器上不起作用.
我也试过killall -9 adb这个问题的正确答案.在正确的答案中也说明最好的解决方案是改变genymotion设置并指向sdk但在我的情况下我已经做到了.
有人可以帮助我摆脱这个错误.
我想尝试做什么:1.将
数据发送到服务器并检查数据库中是否存在该电子邮件,如果存在则返回true;如果不存在则返回false到目前为止我做了什么:我创建了这个js代码,它在更改时触发keyup和paste.
$("#user_email").on('change keyup paste',function(){
console.log("change?");
$.post('/checkEmail?email='+$("#user_email").val(),function(data){
});
//this request results to 404 not found.
});
Run Code Online (Sandbox Code Playgroud)
我在rake路线上有这个
checkEmail POST /checkemail(.:format) user#emailcheck
Run Code Online (Sandbox Code Playgroud)
的routes.rb
Rails.application.routes.draw do
get 'products/index'
get 'home/index'
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
# root 'welcome#index'
root 'home#index'
resources :users, :products
# resources :users do
# resources :products …Run Code Online (Sandbox Code Playgroud) 我有两种看法
ViewController-> Main view
LoginVC -> LogIn View
Run Code Online (Sandbox Code Playgroud)
我的初始视图是 ViewController,其中包含按钮和一些文本。
我想要达到的目标
如果用户尚未登录,则执行将视图转移到登录的 segue。
我做了什么
在我的 ViewController 中,我检查了 USER_ID 是否为 nil,然后如果它为 nil,我将执行 segue。
override func viewWillAppear(animated: Bool) {
if Globals.USER_ID == nil{
self.performSegueWithIdentifier("goto_login", sender: nil)
// dispatch_async(dispatch_get_main_queue(), {
// self.performSegueWithIdentifier("goto_login", sender: nil)
// })
}
}
Run Code Online (Sandbox Code Playgroud)
我的问题是什么
我的问题是我是否使用 viewWillAppear 或 viewDidLoad 或 viewDidAppear 将视图从ViewController传输到 LoginVC。ViewController将在登录屏幕出现之前的一秒钟内可见,我想摆脱它。有人可以帮我解决这个问题。
昨晚我将Windows 7更新到了Windows 10.
结果是努力尝试在Windows 7上运行的Windows 10中运行我的本地apache服务器.我已经尝试卸载并安装另一个版本的xampp然后我提出我必须更改apache的默认端口才能使其运行.
我改了httpd.conf
从Listen 80到Listen 1234
与
ServerName localhost:80以ServerName localhost:1234
并在xampp控制面板中配置 - >服务和端口设置.我也改变了主要港口

现在我可以使用phpmyadmin了localhost:1234/phpmyadmin.现在我的问题是创建虚拟主机
所以我在我的主机(C:\ Windows\System32\drivers\etc\hosts)文件中添加了
127.0.0.1 sample.local
127.0.0.1 anothersample.local
Run Code Online (Sandbox Code Playgroud)
和我的vhost(D:\ xampp\apache\conf\extra\httpd-vhosts.conf)文件
<VirtualHost *:1234>
DocumentRoot "D:/xampp/htdocs/sample"
ServerName sample.local
</VirtualHost>
<VirtualHost *:1234>
DocumentRoot "D:/xampp/htdocs/anothersample"
ServerName anothersample.local
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
我已经重新启动了我的apache但似乎我的虚拟机没有工作.任何人都可以指出我错过了什么?
我有一个配置文件类和设置类
profile类包含一个内部函数
class Profile: UIViewController,UIImagePickerControllerDelegate,UINavigationControllerDelegate {
internal func profileSelectFromGallery(sender: Profile){
let myPickerController = UIImagePickerController()
myPickerController.delegate = sender;
myPickerController.sourceType =
UIImagePickerControllerSourceType.PhotoLibrary
sender.presentViewController(myPickerController, animated:true, completion: nil)
}
}
Run Code Online (Sandbox Code Playgroud)
我想在设置类中使用profileSelectFromGallery,我在下面有两次尝试
class SettingsVC: UITableViewController {
// I will call this private function on a click events
private func selectFromGallery(){
// let profile = Profile()
// profile.profileSelectFromGallery(self)
Profile.profileSelectFromGallery(self)
}
}
Run Code Online (Sandbox Code Playgroud)
上面的代码结果Cannot convert value of type 'SettingsVC' to expected argument type 'Profile'因为profileSelectFromGallery需要一个类的参数Profile所以我想要做的是更改发送者,以便我可以从我的任何一个类而不仅仅是我的Profile类中使用它.