mushoffa / oy-test

0 stars 0 forks source link

gradle build error. #3

Open andrisasuke opened 7 years ago

andrisasuke commented 7 years ago

Pas saya jalananin gradle build command line : ./gradlew clean build kok dpt error gini ya ?

:app:processArmeabi-v7aDebugResources
/home/andri/Data/others/oy-test/OyTest/app/build/intermediates/res/merged/debug/values/values.xml:1795:21-45: AAPT: No resource found that matches the given name: attr 'metaButtonBarButtonStyle'.

/home/andri/Data/others/oy-test/OyTest/app/build/intermediates/res/merged/debug/values/values.xml:1794:21-39: AAPT: No resource found that matches the given name: attr 'metaButtonBarStyle'.

/home/andri/Data/others/oy-test/OyTest/app/build/intermediates/res/merged/debug/values/values.xml:1795: error: Error: No resource found that matches the given name: attr 'metaButtonBarButtonStyle'.

/home/andri/Data/others/oy-test/OyTest/app/build/intermediates/res/merged/debug/values/values.xml:1794: error: Error: No resource found that matches the given name: attr 'metaButtonBarStyle'.

:app:processArmeabi-v7aDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processArmeabi-v7aDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

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

BUILD FAILED

Total time: 2.913 secs
mushoffa commented 7 years ago

Sorry forgot to push attribute dependency, please try rebuild the project. Thank you.

397227b6f0d26b8aed8c6a2a714a19b0984a09bc

andrisasuke commented 7 years ago

please add this config inside app/build.gradle

android { ... lintOptions { abortOnError false }

... }

its failed on linux compile

mushoffa commented 7 years ago

I build the project on Linux as well and got no error, anyway I pushed lintOptions though

andrisasuke commented 7 years ago

klo ini error knp lg ya? :)

:app:transformResourcesWithMergeJavaResForDebug
:app:transformJackWithJackForDebug
/home/andri/Data/others/oy-test/OyTest/app/src/main/java/com/oy/test/activity/HomeActivity.java:7:8: The import android.util.Log is never used
/home/andri/Data/others/oy-test/OyTest/app/src/main/java/com/oy/test/activity/HomeActivity.java:24:8: The import com.google.android.gms.location.LocationServices is never used
/home/andri/Data/others/oy-test/OyTest/app/src/main/java/com/oy/test/activity/HomeActivity.java:25:8: The import com.google.android.gms.location.LocationSettingsStates is never used
/home/andri/Data/others/oy-test/OyTest/app/src/main/java/com/oy/test/OyTestApplication.java:10:8: The import io.realm cannot be resolved
/home/andri/Data/others/oy-test/OyTest/app/src/main/java/com/oy/test/OyTestApplication.java:28:9: Realm cannot be resolved
/home/andri/Data/others/oy-test/OyTest/app/src/main/java/com/oy/test/adapter/MerchantListAdapter.java:19:8: The import java.util.Locale is never used
/home/andri/Data/others/oy-test/OyTest/app/src/main/java/com/oy/test/adapter/MerchantListAdapter.java:30:21: The value of the field MerchantListAdapter.context is not used
/home/andri/Data/others/oy-test/OyTest/app/src/main/java/com/oy/test/adapter/MerchantListAdapter.java:34:22: The value of the field MerchantListAdapter.currentLocation is not used
/home/andri/Data/others/oy-test/OyTest/app/src/main/java/com/oy/test/network/MerchantService.java:6:8: The import java.util.List is never used
/home/andri/Data/others/oy-test/OyTest/app/src/main/java/com/oy/test/network/MerchantService.java:8:8: The import io.reactivex.Flowable is never used
/home/andri/Data/others/oy-test/OyTest/app/src/main/java/com/oy/test/model/Merchant.java:3:8: The import android.util.Log is never used
/home/andri/Data/others/oy-test/OyTest/app/src/main/java/com/oy/test/presenter/HomePresenter.java:4:8: The import android.util.Log is never used
/home/andri/Data/others/oy-test/OyTest/app/build/generated/source/apt/debug/com/oy/test/model/OperationalHour$$Parcelable.java:7:8: The import android.os.Parcelable.Creator is never used
/home/andri/Data/others/oy-test/OyTest/app/build/generated/source/apt/debug/com/oy/test/model/OperationalHour$$Parcelable.java:23:23: Unsupported @SuppressWarnings("UnusedDeclaration")
/home/andri/Data/others/oy-test/OyTest/app/build/generated/source/apt/debug/com/oy/test/model/MerchantList$$Parcelable.java:7:8: The import android.os.Parcelable.Creator is never used
/home/andri/Data/others/oy-test/OyTest/app/build/generated/source/apt/debug/com/oy/test/model/MerchantList$$Parcelable.java:23:23: Unsupported @SuppressWarnings("UnusedDeclaration")
/home/andri/Data/others/oy-test/OyTest/app/build/generated/source/apt/debug/com/oy/test/model/Merchant$$Parcelable.java:7:8: The import android.os.Parcelable.Creator is never used
/home/andri/Data/others/oy-test/OyTest/app/build/generated/source/apt/debug/com/oy/test/model/Merchant$$Parcelable.java:23:23: Unsupported @SuppressWarnings("UnusedDeclaration")
:app:transformJackWithJackForDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformJackWithJackForDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.core.JackToolchain$ToolchainException: Jack compilation exception

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

BUILD FAILED
mushoffa commented 7 years ago

Pake gradle version brp?

I am currently have this configuration on my AS and works fine: Gradle Version: 3.3 Android Plugin Version: 2.3.0

andrisasuke commented 7 years ago

pake nya ./gradlew. harusnya itu langsung compile pake gradle wrapper yg ada di build.gradle

mushoffa commented 7 years ago

Bro, try open the project on Android Studio

  1. Comment JackOptions, comment all dependencies
  2. Sync / rebuild
  3. Uncomment JackOptoins, uncomment all dependencies
  4. Syn / rebuild