无法在根项目上找到参数[:app]的方法include() [英] Could not find method include() for arguments [:app] on root project
问题描述
1 >失败:构建失败,出现异常。
建立失败
- 其中:
建立档案
'C:\ Users \Poornima\AndroidStudioProjects\BooKmyTicket\settings .gradle'line:1
总时间:2.629秒
- 错误:
评估根项目'BooKmyTicket'时出现问题。
无法在根项目'BooKmyTicket'上找到参数[:app]的方法include()。
$ b
- 尝试:
运行--stacktrace选项来获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。
处理完成退出代码1
setting.gradle
`include':app`
登入.xml
`< RelativeLayout xmlns:android =http://schemas.android.com/apk/res/androidxmlns: tools:http://schemas.android.com/toolsandroid:layout_width =match_parentandroid:layout_height =match_parentandroid:background =@ drawable / imagestools:context =gss.bookmyticket.LOGIN > < TextView android:id =@ + id / fullscreen_contentandroid:layout_width =match_parentandroid:layout_height =match_parentandroid:gravity =centerandroid:keepScreenOn =true textStyle =bold/> < LinearLayout android:id =@ + id / fullscreen_content_controlsstyle =?metaButtonBarStyleandroid:layout_width =match_parentandroid:layout_height =wrap_contentandroid:layout_gravity =bottom | center_horizontaltools:ignore =UselessParent > < /&的LinearLayout GT; < TextView android:layout_width =wrap_contentandroid:layout_height =wrap_contentandroid:textAppearance =?android:attr / textAppearanceLargeandroid:text =\\\
LOGIN \\\
android:id =@ + id / tTITLEandroid:textColor =#FFFFFFandroid:background =#009688android:layout_alignParentTop =trueandroid:layout_alignParentStart =trueandroid:layout_alignParentEnd =true/> < TextView android:layout_width =wrap_contentandroid:layout_height =wrap_contentandroid:textAppearance =?android:attr / textAppearanceLargeandroid:text =PASSWORDandroid:id =@ + id / tPASSWORDandroid:layout_alignTop =@ + id / ePASSWORD1android:layout_alignParentStart =true/> < TextView android:layout_width =wrap_contentandroid:layout_height =wrap_contentandroid:textAppearance =?android:attr / textAppearanceLargeandroid:text =USERNAMEandroid:id =@ + id / tUSERNAMEandroid:layout_centerVertical =trueandroid:layout_alignParentStart =true/> < EditText android:layout_width =wrap_contentandroid:layout_height =30dpandroid:inputType =textPersonNameandroid:text =USERNAMEandroid:background =#9E9E9Eandroid:ems =10android:id = @ + id / eUSERNAME1android:layout_alignTop =@ + id / tUSERNAMEandroid:layout_alignParentEnd =true/> < EditText android:layout_width =wrap_contentandroid:layout_height =30dpandroid:inputType =textPasswordandroid:text =passwordandroid:ems =10android:background =#9E9E9E @ + id / ePASSWORD1android:layout_below =@ + id / tUSERNAMEandroid:layout_alignParentEnd =trueandroid:layout_marginTop =37dp/> android:layout_width =wrap_contentandroid:layout_height =wrap_contentandroid:text =LOGINandroid:id =@ + id / bLoginandroid:layout_alignParentBottom =true android:layout_toStartOf =@ + id / bRegisterandroid:layout_marginBottom =87dp/> android:layout_width =wrap_contentandroid:layout_height =wrap_contentandroid:text =REGISTERandroid:background =#0097A7android:id =@ + id / bRegisterandroid:layout_marginStart =60dp android:layout_alignBottom =@ + id / bLoginandroid:layout_alignStart =@ + id / ePASSWORD1/> < / RelativeLayout>
register.xml
`< LinearLayout xmlns:android =http://schemas.android.com/apk/res/androidxmlns:tools =http:// android:layout_width =match_parentandroid:background =#00BCD4android:orientation =vertical>android:layout_height =match_parent < TextView android:layout_width =wrap_contentandroid:layout_height =wrap_contentandroid:textAppearance =?android:attr / textAppearanceMediumandroid:text =#FFFFFFandroid:layout_marginTop =20dp android:id =@ + id / tUSERNAME/> < EditText android:layout_width =match_parentandroid:layout_height =wrap_contentandroid:inputType =textPersonNameandroid:text =输入名称android:ems =10android:id =@ + id / eUSERNAME1 android:textColor =#607D8Bandroid:layout_gravity =center_horizontal/> < TextView android:layout_width =wrap_contentandroid:layout_height =wrap_contentandroid:textAppearance =?android:attr / textAppearanceMediumandroid:text =#FFFFFFandroid:id =@ + id / tPASSWORD/> < EditText android:layout_width =match_parentandroid:layout_height =wrap_contentandroid:id =@ + id / ePASSWORD1android:textColor =#607D8Bandroid:text =输入密码/> < TextView android:layout_width =84dpandroid:layout_height =wrap_contentandroid:textAppearance =?android:attr / textAppearanceMediumandroid:textColor =#FFFFFFandroid:id =@ + id / tEMAILID/> < EditText android:layout_width =match_parentandroid:layout_height =wrap_contentandroid:inputType =textEmailAddressandroid:ems =10android:textColor =#607D8Bandroid:id =@ + id / eEMAILID1 android:layout_gravity =center_horizontalandroid:text =输入你的emailid/> < TextView android:layout_width =wrap_contentandroid:layout_height =wrap_contentandroid:textAppearance =?android:attr / textAppearanceMediumandroid:text =#FFFFFFandroid:id =@ + id / tPHNNO/> < EditText android:layout_width =match_parentandroid:layout_height =wrap_contentandroid:inputType =phoneandroid:ems =10android:textColor =#607D8Bandroid:id =@ + id / ePHNNO1 android:text =输入你的phno/> < TextView android:layout_width =wrap_contentandroid:layout_height =wrap_contentandroid:textAppearance =?android:attr / textAppearanceMediumandroid:text =#FFFFFFandroid:id =@ + id / tADDRESS/> < EditText android:layout_width =match_parentandroid:layout_height =wrap_contentandroid:inputType =textPostalAddressandroid:ems =10android:textColor =#607D8Bandroid:id =@ + id / eADDRESS1 android:layout_gravity =center_horizontalandroid:text =输入你的邮寄地址/> < TextView android:layout_width =wrap_contentandroid:layout_height =wrap_contentandroid:textAppearance =?android:attr / textAppearanceSmallandroid:text =我接受对任何非法活动提供责任。 DATE BOOKED ONLYandroid:id =@ + id / tTEXT/> < CheckBox android:layout_width =wrap_contentandroid:layout_height =wrap_contentandroid:text =Please,Accept TERMS AND CONDITIONSandroid:textColor =#FFFFFFandroid:id =@ + id / checkBoxandroid: checked =false/> < Button android:layout_width =wrap_contentandroid:layout_height =wrap_contentandroid:text =REGISTERandroid:textColor =#FFFFFFandroid:id =@ + id / bRegisterandroid:background =#9E9E9E android:layout_gravity =center_horizontal/> < / LinearLayout>`
$ b login.java
`package gss.bookmyticket; import gss.bookmyticket.util.SystemUiHider;导入android.annotation.TargetApi;导入android.app.Activity;导入android.content.Intent;导入android.hardware.camera2.CameraCaptureSession;导入android.os.Build;导入android.os.Bundle;导入android.os.Handler;导入android.view.MotionEvent;导入android.view.View;导入android.widget.Button; import android.widget.EditText;导入android.widget.TextView; import org.w3c.dom.Text;私人SystemUiHider mSystemUiHider; @Override保护无效onCreate(Bundle savedInstanceState){super.onCreate(savedInstanceState);的setContentView(R.layout.activity_login); bLOGIN =(Button)findViewById(R.id.bLogin); bREGISTER =(Button)findViewById(R.id.bRegister); eUSERNAME1 =(EditText)findViewById(R.id.eUSERNAME1); ePASSWORD1 =(EditText)findViewById(R.id.ePASSWORD1); tUSERNAME =(TextView)findViewById(R.id.tUSERNAME); tPASSWORD =(TextView)findViewById(R.id.tPASSWORD); tTITLE =(TextView)findViewById(R.id.tTITLE); bREGISTER.setOnClickListener(本); final View controlsView = findViewById(R.id.fullscreen_content_controls); final查看contentView = findViewById(R.id.fullscreen_content); mSystemUiHider = SystemUiHider.getInstance(this,contentView,HIDER_FLAGS); mSystemUiHider.setup(); mSystemUiHider .setOnVisibilityChangeListener(new SystemUiHide.OnVisibility ChangeListener(){//缓存值。int mControlsHeight; int mShortAnimTime; @Override @TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)public void onVisibilityChange(boolean visible){if(Build.VERSION.SDK_INT> ; = Build.VERSION_CODES.HONEYCOMB_MR2){//如果ViewPropertyAnimator API可用//(Honeycomb MR2及更高版本),可以使用它在屏幕底部为布局UI控件设置动画if(mControlsHeight == 0){mControlsHeight = controlsView.getHeight();} if(mShortAnimTime == 0) {mShortAnimTime = getResources()。getInteger(android.R.integer.config_shortAnimTime); } controlsView.animate().translationY(visible?0:mControlsHeight).setDuration(mShortAnimTime); } else {//如果ViewPropertyAnimator API不可用,只需显示或隐藏布局中的UI控件即可。 controlsView.setVisibility(visible?View.VISIBLE:View.GONE); } if(visible&& AUTO_HIDE){//安排一个hide()。 delayedHide(AUTO_HIDE_DELAY_MILLIS); }}}); //设置用户交互以手动显示或隐藏系统UI。 contentView.setOnClickListener(new View.OnClickListener(){@Override public void onClick(View view){if(TOGGLE_ON_CLICK){mSystemUiHider.toggle();} else {mSystemUiHider.show();}}}); //在与UI控件进行交互时,延迟任何预定的hide()//操作,以防止在与UI交互时控件的震撼行为消失。 } @Override public void onClick(View v){switch(v.getId()){case R.id.bRegister:startActivity(new Intent(this,REGISTER.class));打破; }} @Override保护无效onPostCreate(Bundle savedInstanceState){super.onPostCreate(savedInstanceState); //在创建活动后立即触发初始hide(),以简短地向用户提示UI控件可用。 delayedHide(100); } / ** *触摸侦听器以用于布局内UI控件,以延迟隐藏*系统UI。这是为了防止在与活动UI进行交互时,控件的震撼行为消失。 * / View.OnTouchListener mDelayHideTouchListener = newView.OnTouchListener(){@Override public boolean onTouch(View view,MotionEvent motionEvent){if(AUTO_HIDE){delayedHide(AUTO_HIDE_DELAY_MILLIS); }返回false; }}; Handler mHideHandler = new Handler(); Runnable mHideRunnable = new Runnable(){@Override public void run(){mSystemUiHider.hide(); }}; / ** *安排在[延迟]毫秒内调用隐藏(),取消以前预定的任何调用。 * / private void delayedHide(int delayMillis){mHideHandler.removeCallbacks(mHideRunnable); mHideHandler.postDelayed(mHideRunnable,delayMillis);
$ b register.java
$ b $
`package gss.bookmyticket;导入android.content.Intent;导入android.support.v7.app.ActionBarActivity;导入android.os.Bundle;导入android.view.Menu;导入android.view.MenuItem;导入android.view.View;导入android.widget.Button;导入android.widget.CheckBox; import android.widget.EditText;导入android.widget.TextView;公共类REGISTER扩展ActionBarActivity实现View.OnClickListener {Button bREGISTER; EditText eUSERNAME1,ePASSWORD1,eADDRESS1,ePHNNO1; TextView tUSERNAME,tPASSWORD,tTEXT,tADDRESS,tPHNNO; CheckBox checkBox; @Override保护无效onCreate(Bundle savedInstanceState){super.onCreate(savedInstanceState);的setContentView(R.layout.activity_register); bREGISTER =(Button)findViewById(R.id.bRegister); eUSERNAME1 =(EditText)findViewById(R.id.eUSERNAME1); ePASSWORD1 =(EditText)findViewById(R.id.ePASSWORD1); eADDRESS1 =(EditText)findViewById(R.id.eADDRESS1); ePHNNO1 =(EditText)findViewById(R.id.ePHNNO1); tUSERNAME =(TextView)findViewById(R.id.tUSERNAME); tPASSWORD =(TextView)findViewById(R.id.tPASSWORD); tADDRESS =(TextView)findViewById(R.id.tADDRESS); tPHNNO =(TextView)findViewById(R.id.tPHNNO); tTEXT =(TextView)findViewById(R.id.tTEXT); checkBox =(CheckBox)findViewById(R.id.checkBox); bREGISTER.setOnClickListener(本); }
可能会删除冒号(':'),查看多项目构建示例在Gradle用户指南中。如果您将项目作为依赖项包含在内,则使用冒号。
1>FAILURE: Build failed with an exception.
BUILD FAILED
- Where:
Build file
'C:\Users\Poornima\AndroidStudioProjects\BooKmyTicket\settings.gradle' line: 1
Total time: 2.629 secs
- What went wrong:
A problem occurred evaluating root project 'BooKmyTicket'.
Could not find method include() for arguments [:app] on root project 'BooKmyTicket'.
- Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Process finished with exit code 1
setting.gradle
`include ':app`
login.xml
`<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/images"
tools:context="gss.bookmyticket.LOGIN">
<TextView
android:id="@+id/fullscreen_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:keepScreenOn="true"
android:text=" "
android:textStyle="bold" />
<LinearLayout
android:id="@+id/fullscreen_content_controls"
style="?metaButtonBarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
tools:ignore="UselessParent" >
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="\n LOGIN \n"
android:id="@+id/tTITLE"
android:textColor="#FFFFFF"
android:background="#009688"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="PASSWORD"
android:id="@+id/tPASSWORD"
android:layout_alignTop="@+id/ePASSWORD1"
android:layout_alignParentStart="true" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="USERNAME"
android:id="@+id/tUSERNAME"
android:layout_centerVertical="true"
android:layout_alignParentStart="true" />
<EditText
android:layout_width="wrap_content"
android:layout_height="30dp"
android:inputType="textPersonName"
android:text=" USERNAME"
android:background="#9E9E9E"
android:ems="10"
android:id="@+id/eUSERNAME1"
android:layout_alignTop="@+id/tUSERNAME"
android:layout_alignParentEnd="true" />
<EditText
android:layout_width="wrap_content"
android:layout_height="30dp"
android:inputType="textPassword"
android:text=" password"
android:ems="10"
android:background="#9E9E9E"
android:id="@+id/ePASSWORD1"
android:layout_below="@+id/tUSERNAME"
android:layout_alignParentEnd="true"
android:layout_marginTop="37dp" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" LOGIN "
android:id="@+id/bLogin"
android:background="#0097A7"
android:layout_alignParentBottom="true"
android:layout_toStartOf="@+id/bRegister"
android:layout_marginBottom="87dp" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" REGISTER "
android:background="#0097A7"
android:id="@+id/bRegister"
android:layout_marginStart="60dp"
android:layout_alignBottom="@+id/bLogin"
android:layout_alignStart="@+id/ePASSWORD1" />
</RelativeLayout>
register.xml
`<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".MainActivity"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#00BCD4"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="USERNAME"
android:textColor="#FFFFFF"
android:layout_marginTop="20dp"
android:id="@+id/tUSERNAME" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:text="enter name"
android:ems="10"
android:id="@+id/eUSERNAME1"
android:textColor="#607D8B"
android:layout_gravity="center_horizontal" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="PASSWORD"
android:textColor="#FFFFFF"
android:id="@+id/tPASSWORD" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/ePASSWORD1"
android:textColor="#607D8B"
android:text="enter password" />
<TextView
android:layout_width="84dp"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="EMAILID"
android:textColor="#FFFFFF"
android:id="@+id/tEMAILID" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
android:ems="10"
android:textColor="#607D8B"
android:id="@+id/eEMAILID1"
android:layout_gravity="center_horizontal"
android:text="enter your emailid" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="PHNNO"
android:textColor="#FFFFFF"
android:id="@+id/tPHNNO" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="phone"
android:ems="10"
android:textColor="#607D8B"
android:id="@+id/ePHNNO1"
android:text="enter your phno" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="ADDRESS"
android:textColor="#FFFFFF"
android:id="@+id/tADDRESS" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPostalAddress"
android:ems="10"
android:textColor="#607D8B"
android:id="@+id/eADDRESS1"
android:layout_gravity="center_horizontal"
android:text="enter your postal address" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text=" I ACCEPT TO TAKE RESPONSIBILITY FOR ANY ILLEGAL ACTIV
ITIES .THE TICKET IS VALID FOR DATE BOOKED ONLY"
android:id="@+id/tTEXT" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Please ,Accept TERMS AND CONDITIONS "
android:textColor="#FFFFFF"
android:id="@+id/checkBox"
android:checked="false" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" REGISTER "
android:textColor="#FFFFFF"
android:id="@+id/bRegister"
android:background="#9E9E9E"
android:layout_gravity="center_horizontal" />
</LinearLayout>`
login.java
`package gss.bookmyticket;
import gss.bookmyticket.util.SystemUiHider;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Intent;
import android.hardware.camera2.CameraCaptureSession;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import org.w3c.dom.Text;
private SystemUiHider mSystemUiHider;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
bLOGIN = (Button) findViewById(R.id.bLogin);
bREGISTER = (Button) findViewById(R.id.bRegister);
eUSERNAME1 = (EditText) findViewById(R.id.eUSERNAME1);
ePASSWORD1 = (EditText) findViewById(R.id.ePASSWORD1);
tUSERNAME =(TextView) findViewById(R.id.tUSERNAME);
tPASSWORD=(TextView) findViewById(R.id.tPASSWORD);
tTITLE=(TextView) findViewById(R.id.tTITLE);
bREGISTER.setOnClickListener(this);
final View controlsView =
findViewById(R.id.fullscreen_content_controls);
final View contentView = findViewById(R.id.fullscreen_content);
mSystemUiHider = SystemUiHider.getInstance
(this, contentView, HIDER_FLAGS);
mSystemUiHider.setup();
mSystemUiHider
.setOnVisibilityChangeListener(new SystemUiHide.OnVisibility
ChangeListener() {
// Cached values.
int mControlsHeight;
int mShortAnimTime;
@Override
@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)
public void onVisibilityChange(boolean visible) {
if (Build.VERSION.SDK_INT >=
Build.VERSION_CODES.HONEYCOMB_MR2) {
// If the ViewPropertyAnimator API is available
// (Honeycomb MR2 and later), use it to animate the
// in-layout UI controls at the bottom of the
// screen.
if (mControlsHeight == 0) {
mControlsHeight = controlsView.getHeight();
}
if (mShortAnimTime == 0) {
mShortAnimTime = getResources().getInteger(
android.R.integer.config_shortAnimTime);
}
controlsView.animate()
.translationY(visible ? 0 : mControlsHeight)
.setDuration(mShortAnimTime);
} else {
// If the ViewPropertyAnimator APIs aren't
// available, simply show or hide the in-layout UI
// controls.
controlsView.setVisibility(visible ?
View.VISIBLE : View.GONE);
}
if (visible && AUTO_HIDE) {
// Schedule a hide().
delayedHide(AUTO_HIDE_DELAY_MILLIS);
}
}
});
// Set up the user interaction to manually show or hide the system UI.
contentView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (TOGGLE_ON_CLICK) {
mSystemUiHider.toggle();
} else {
mSystemUiHider.show();
}
}
});
// Upon interacting with UI controls, delay any scheduled hide()
// operations to prevent the jarring behavior of controls going away
// while interacting with the UI.
}
@Override
public void onClick(View v) {
switch(v.getId()){
case R.id.bRegister:
startActivity(new Intent(this,REGISTER.class));
break;
}
}
@Override
protected void onPostCreate(Bundle savedInstanceState) {
super.onPostCreate(savedInstanceState);
// Trigger the initial hide() shortly after the activity has been
// created, to briefly hint to the user that UI controls
// are available.
delayedHide(100);
}
/**
* Touch listener to use for in-layout UI controls to delay hiding the
* system UI. This is to prevent the jarring behavior of controls
going away
* while interacting with activity UI.
*/
View.OnTouchListener mDelayHideTouchListener =
newView.OnTouchListener() {
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
if (AUTO_HIDE) {
delayedHide(AUTO_HIDE_DELAY_MILLIS);
}
return false;
}
};
Handler mHideHandler = new Handler();
Runnable mHideRunnable = new Runnable() {
@Override
public void run() {
mSystemUiHider.hide();
}
};
/**
* Schedules a call to hide() in [delay] milliseconds, canceling any
* previously scheduled calls.
*/
private void delayedHide(int delayMillis) {
mHideHandler.removeCallbacks(mHideRunnable);
mHideHandler.postDelayed(mHideRunnable, delayMillis);
}
}`
register.java
`package gss.bookmyticket;
import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.TextView;
public class REGISTER extends ActionBarActivity implements
View.OnClickListener {
Button bREGISTER;
EditText eUSERNAME1, ePASSWORD1, eADDRESS1, ePHNNO1;
TextView tUSERNAME, tPASSWORD, tTEXT, tADDRESS, tPHNNO;
CheckBox checkBox;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_register);
bREGISTER = (Button) findViewById(R.id.bRegister);
eUSERNAME1 = (EditText) findViewById(R.id.eUSERNAME1);
ePASSWORD1 = (EditText) findViewById(R.id.ePASSWORD1);
eADDRESS1 = (EditText) findViewById(R.id.eADDRESS1);
ePHNNO1 = (EditText) findViewById(R.id.ePHNNO1);
tUSERNAME = (TextView) findViewById(R.id.tUSERNAME);
tPASSWORD = (TextView) findViewById(R.id.tPASSWORD);
tADDRESS = (TextView) findViewById(R.id.tADDRESS);
tPHNNO = (TextView) findViewById(R.id.tPHNNO);
tTEXT = (TextView) findViewById(R.id.tTEXT);
checkBox = (CheckBox) findViewById(R.id.checkBox);
bREGISTER.setOnClickListener(this);
}
You should probably remove the colon (':'), looking at the Multi-project build example in the Gradle userguide. The colon is used if you include a project as depedency.
这篇关于无法在根项目上找到参数[:app]的方法include()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!