大佬教程收集整理的这篇文章主要介绍了Android Studio无法在设备上运行应用程序:卡在“等待进程:”,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
WaiTing for device. Target device: samsung-samsung_sgh_i337-8c8aa2c7 Uploading file local path: C:\Users\awebberley\AndroidstudioProjects\Contacts\app\build\apk\app-debug-unaligned.apk remote path: /data/local/tmp/org.intracode.contacts Installing org.intracode.contacts DEVICE SHelL COMMAND: pm install -r "/data/local/tmp/org.intracode.contacts" pkg:/data/local/tmp/org.intracode.contacts success WaiTing for process: org.intracode.contacts
它只停留在“等待进程”消息而不运行应用程序.我是Android开发的新手,有没有我失踪的东西?
在我之前,我能够在一个模拟器中启动应用程序,但是在我尝试这个并返回到仿真器之后,出现了同样的“等待进程”消息.
这是我的manifest.xml文件:
<?xml version="1.0" encoding="utf-8"?>
<application android:debuggable="true" android:allowBACkup="true" android:icon="@drawable/ic_launcher" android:label="@String/app_name" android:theme="@style/AppTheme" > <activity android:name="org.intracode.contacts.MainActivity" android:launchMode="standard" android:label="@String/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application>
这是我唯一的java文件:
package org.intracode.contacts; import android.support.v7.app.ActionBarActivity; import android.os.bundle; import android.text.Editable; import android.text.TextWatcher; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.button; import android.widget.EditText; import android.widget.TabHost; import android.widget.Toast; public class MainActivity extends ActionBarActivity { EditText nameTxt,phoneTxt,emailTxt,addressTxt; @Override protected void onCreate(Bundle savedInstanceStatE) { super.onCreate(savedInstanceStatE); setContentView(R.layout.activity_main); nameTxt = (EditText) findViewById(R.id.txtName); phoneTxt = (EditText) findViewById(R.id.txtPhonE); emailTxt = (EditText) findViewById(R.id.txtEmail); addressTxt = (EditText) findViewById(R.id.txtAddress); TabHost tabHost = (TabHost) findViewById(R.id.tabHost); tabHost.setup(); TabHost.TabSpec tabSpec = tabHost.newTabSpec("Creator"); tabSpec.setContent(R.id.creator); tabSpec.seTinDicator("Creator"); tabHost.addTab(tabSpec); tabSpec = tabHost.newTabSpec("List"); tabSpec.setContent(R.id.tabContactList); tabSpec.seTinDicator("List"); tabHost.addTab(tabSpec); final Button addBtn = (Button) findViewById(R.id.btncreate); addBtn.setOnClickListener(new View.onClickListener() { @Override public void onClick(View view) { Toast.makeText(getApplicationContext(),"Your Contact has been created!",Toast.LENGTH_SHORT).show(); } }); nameTxt.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence charSequence,int i,int i2,int i3) { } @Override public void ontextChanged(CharSequence charSequence,int i3) { addBtn.setEnabled(!nameTxt.getText().toString().trim().isEmpty()); } @Override public void afterTextChanged(Editable editablE) { } }); } @Override public Boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main,menu); return true; } @Override public Boolean onOptionsItemSELEcted(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button,so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId(); if (id == R.id.action_setTings) { return true; } return super.onOptionsItemSELEcted(item); } }
谢谢
以上是大佬教程为你收集整理的Android Studio无法在设备上运行应用程序:卡在“等待进程:”全部内容,希望文章能够帮你解决Android Studio无法在设备上运行应用程序:卡在“等待进程:”所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。