I have a problem and it is that when executing the following code it gives me an error
<LinearLayout
android:orientation="horizontal"
android:layout_alignParentBottom="true"
android:weightSum="2"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<info.hoang8f.widget.FButton
android:id="@+id/btnSignUp"
android:text="Iniciar seción"
android:textColor="@android:color/white"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="8dp"
app:buttonColor="@color/btnSignUp"
app:shadowColor="@android:color/black"
app:shadowEnabled="true"
app:shadowHeight="5dp"
app:cornerRadius="4dp"
/>
</LinearLayout>
[![enter the description of the image here][1]][1] therefore change the Build.gradle classpath com.android.tools.build:gradle:3.0.0
to classpath 'com.android.tools.build:gradle:2.3.3'
because in this version it works
but now the problem is that the dradle project does not synchronize since I changed the version, what can I do to solve this problem
Apparently the version of
Gradle
and your Android studio should be consistent. in yourGradle (project)
. In your case it would be something like:Now to "update" your AS try in your menu with :
And the other thing you can do is invalidate cache and restart AS.