JakeWharton/u2020

Can't run project ?

chihung93 opened this issue · 7 comments

I got a error when run project .

Could you please help me solve this problem ? Tks

Error:(112, 0) Could not find method implementation() for arguments [com.android.support:support-v4:26.0.0-beta2] on object of type org.gradle.api.internal.artifacts.dsl.depend
screen shot 2017-07-23 at 2 54 46 pm
encies.DefaultDependencyHandler.

Please install the Android Support Repository from the Android SDK Manager.
Open Android SDK Manager

@JakeWharton :
I'm using AS 2.3.3

@JakeWharton 👍
Now , I'm using AS 3.0 canary

still got a error .

Error:Execution failed for task ':app:compileInternalDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

screen shot 2017-07-23 at 7 24 36 pm

@chihung93 can you try clean build + rebuild project? also try from console using ./gradlew assembleDebug both works fine for me. I am using AS 3.0 Canary 6.

@amardeshbd : I do not know what steps I have missed?
I am using AS 3.0 Canary 7.
I tried to clean build + rebuild project a lot .

./gradlew assembleDebug

Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/transform-api/2.0.0-deprecated-use-gradle-api/transform-api-2.0.0-deprecated-use-gradle-api.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/transform-api/2.0.0-deprecated-use-gradle-api/transform-api-2.0.0-deprecated-use-gradle-api.jar

> Task :app:compileInternalDebugJavaWithJavac
/Users/hungdct/Downloads/u2020-master/app/src/internalDebug/java/com/jakewharton/u2020/ui/debug/DebugView.java:19: error: cannot find symbol
import android.widget.TextView;
              ^
  symbol:   variable L
  location: class BuildConfig
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/hungdct/Downloads/u2020-master/app/src/internalDebug/java/com/jakewharton/u2020/ui/debug/ContextualDebugActions.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileInternalDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 56s
38 actionable tasks: 34 executed, 4 up-to-date

I updated my AS to canary 7, just to make sure it's same as yours. It still works.
Looking at the error, I can't make sense out of it. What does L point to in the BuildConfig class?