Tag: Gradle

Gradle İyileştirmeleri

Android ile gelen gradle plugin ile derleme ve sonrasında farklı işler yapabiliyoruz. Öyle ki bu plugin de java ile yazıldığını söylersem ne kadar şey yapabileceğimizi daha iyi anlatmış olurum sanırım. applicationVariants.all { variant -> variant.outputs.each { output -> output.outputFile = new File( output.outputFile.parent, output.outputFile.name.replace(“.apk”, “-${variant.versionCode}.apk”)) } } Yukarıdaki kod derlenen apk’nın isminin sonuna Manifest’te yazılı… Read more »

app:transformClassesWithDexForDebug solution

I have faced below problem Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’. > com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {–dex –force-jumbo –num-threads=4 –multi-dex –output C:\Users\dtyunlu\AndroidStudioProjects\iris-mobil-android\app\build\intermediates\transforms\dex\debug\folders\1000\5\slice_2 C:\Users\dtyunlu\AndroidStudioProjects\iris-mobil-android\app\build\intermediates\transforms\instantRunSlicer\debug\folders\1\5\slice_2} Although, tried the solutions from here : https://stackoverflow.com/questions/33915955/android-studio-transformexception-errorexecution-failed-for-task-apptransf didn’t solve my problem. So I have deleted this part from my gradle: dexOptions… Read more »

Android version code ve version name

Bu değerler Androidmanifest.xml içinde <?xml version=”1.0″ encoding=”utf-8″?> <manifest xmlns:android=”http://schemas.android.com/apk/res/android” package=”com.yusuf.mobil” android:installLocation=”auto” android:versionCode=”2″ android:versionName=”2.0″> … olarak yazılır. Ancak build.gradle ile de override edilebiliyor. defaultConfig { applicationId “com.digiturk.iris” minSdkVersion 16 targetSdkVersion 25 versionCode 1 versionName “1.0” multiDexEnabled true }

Crashlytics list my app but doesn’t show crashe reports

Finally solved this problem. I have been curious why it doesn’t work even though my other app’s crashlytics report works well. Gradle was guiltyas usual 🙂 if you are in same situation so make sure applicationId is correct defaultConfig { applicationId “com.unlu.mobil” minSdkVersion 15 targetSdkVersion 24 // Enabling multidex support. multiDexEnabled true }